Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
7699cfac
Commit
7699cfac
authored
Oct 23, 2014
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: fix build on Windows
parent
5c48a457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
IntegrationTest.java
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
+5
-4
StaticCompiler.java
...src/test/java/jadx/tests/api/compiler/StaticCompiler.java
+1
-2
No files found.
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
View file @
7699cfac
...
...
@@ -312,16 +312,17 @@ public abstract class IntegrationTest extends TestUtils {
File
outTmp
=
createTempDir
(
"jadx-tmp-classes"
);
outTmp
.
deleteOnExit
();
List
<
File
>
files
=
StaticCompiler
.
compile
(
Arrays
.
asList
(
file
),
outTmp
,
withDebugInfo
);
String
filter
=
outTmp
.
getAbsolutePath
()
+
File
.
separator
+
cls
.
getName
().
replace
(
'.'
,
'/'
);
// remove classes which are parents for test class
Iterator
<
File
>
iterator
=
files
.
iterator
();
while
(
iterator
.
hasNext
())
{
File
next
=
iterator
.
next
();
if
(!
next
.
get
AbsolutePath
().
startsWith
(
filter
))
{
if
(!
next
.
get
Name
().
contains
(
cls
.
getSimpleName
()
))
{
iterator
.
remove
();
}
else
{
next
.
deleteOnExit
();
}
}
for
(
File
clsFile
:
files
)
{
clsFile
.
deleteOnExit
();
}
return
files
;
}
...
...
jadx-core/src/test/java/jadx/tests/api/compiler/StaticCompiler.java
View file @
7699cfac
...
...
@@ -13,7 +13,6 @@ import java.io.File;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.net.URI
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collections
;
...
...
@@ -73,7 +72,7 @@ public class StaticCompiler {
private
File
file
;
protected
ClassFileObject
(
File
file
,
Kind
kind
)
{
super
(
URI
.
create
(
"file://"
+
file
.
getAbsolutePath
()
),
kind
);
super
(
file
.
toURI
(
),
kind
);
this
.
file
=
file
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment