-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename artifact and split demos out into a separate project
- Loading branch information
lytles@takashi
committed
Sep 25, 2018
1 parent
f7cb77e
commit 05fccfe
Showing
7 changed files
with
75 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /bin/bash | ||
|
||
|
||
if [ -n "$MAVEN_HOME" ]; then | ||
echo "adding MAVEN_HOME to path: $MAVEN_HOME/bin" | ||
PATH="$MAVEN_HOME/bin:$PATH" | ||
fi | ||
|
||
yes "" | head | ||
JAVA_HOME=$java9 mvn clean package | ||
cp=$(mvn -q dependency:build-classpath -Dmdep.outputFile=/dev/fd/1) | ||
echo "classpath: $cp" | ||
|
||
|
||
yes "" | head | ||
echo "demo unflect for java 8 - 7, 8, 9, 10, 11" | ||
for ii in $java7 $java8 $java9 $java10 $java11; do | ||
$ii/bin/java -cp target/classes:$cp demo.Demo8 | ||
done | ||
|
||
yes "" | head | ||
echo "demo unflect - 9, 10, 11" | ||
for ii in $java9 $java10 $java11; do | ||
$ii/bin/java -cp target/classes:$cp demo.DemoUnflect | ||
done | ||
|
||
yes "" | head | ||
echo "demo normal without godmode - should fail" | ||
$java9/bin/java -cp target/classes:$cp demo.DemoNormal | ||
|
||
yes "" | head | ||
echo "demo normal with godmode" | ||
$java9/bin/java -cp target/classes:$cp com.nqzero.unflect.Unflect demo.DemoNormal | ||
|
||
yes "" | head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.nqzero</groupId> | ||
<artifactId>demo-reflect</artifactId> | ||
<version>0.1</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.nqzero</groupId> | ||
<artifactId>reflect</artifactId> | ||
<version>0.1</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
</build> | ||
<properties> | ||
<maven.compiler.source>1.6</maven.compiler.source> | ||
<maven.compiler.target>1.6</maven.compiler.target> | ||
</properties> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters