Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
edd77ae2
Commit
edd77ae2
authored
Sep 09, 2016
by
Wouter van Oortmerssen
Committed by
GitHub
Sep 09, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4010 from rgilles/master
Isolate the complied Java classes into a target folder.
parents
8e3fa336
582fd90c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
JavaTest.sh
tests/JavaTest.sh
+18
-3
No files found.
tests/JavaTest.sh
View file @
edd77ae2
#!/bin/sh
#!/bin/
ba
sh
#
# Copyright 2014 Google Inc. All rights reserved.
#
...
...
@@ -16,14 +16,29 @@
echo
Compile
then
run the Java test.
java
-version
testdir
=
$(
readlink
-fn
`
dirname
$0
`
)
thisdir
=
$(
readlink
-fn
`
pwd
`
)
targetdir
=
${
testdir
}
/target
if
[[
"
$testdir
"
!=
"
$thisdir
"
]]
;
then
echo
error: must be run from inside the
${
testdir
}
directory
echo
you ran it from
${
thisdir
}
exit
1
fi
javac
-classpath
${
testdir
}
/../java:
${
testdir
}
:
${
testdir
}
/namespace_test JavaTest.java
java
-classpath
${
testdir
}
/../java:
${
testdir
}
:
${
testdir
}
/namespace_test JavaTest
find ..
-type
f
-name
"*.class"
-exec
rm
{}
\;
if
[[
-e
"
${
targetdir
}
"
]]
;
then
echo
"clean target"
rm
-rf
${
targetdir
}
fi
mkdir
${
targetdir
}
javac
-d
${
targetdir
}
-classpath
${
testdir
}
/../java:
${
testdir
}
:
${
testdir
}
/namespace_test JavaTest.java
java
-classpath
${
targetdir
}
JavaTest
rm
-rf
${
targetdir
}
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