Skip to content

Commit 9de6ac5

Browse files
committed
Don't build the jar just to run it.
1 parent 362bea2 commit 9de6ac5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,19 @@
6161
</jar>
6262
</target>
6363

64-
<target name="run" depends="jar" description="Run the application.">
65-
<java jar="${dist.dir}/${jar.file}" fork="true">
64+
<target name="run" depends="compile" description="Run the application.">
65+
<java classname="${main.class}" classpath="${build.classes.dir}">
66+
<classpath refid="build.classpath"/>
6667
<arg value="--name"/>
6768
<arg value="Java"/>
6869
</java>
6970
</target>
7071

71-
<target name="run-hotswap" depends="jar"
72+
<target name="run-hotswap" depends="compile"
7273
description="Run the application in hotswap mode.">
73-
<java jar="${dist.dir}/${jar.file}" fork="true">
74+
<java classname="${main.class}" classpath="${build.classes.dir}"
75+
fork="true">
76+
<classpath refid="build.classpath"/>
7477
<jvmarg line="-Xdebug -Xrunjdwp:transport=dt_socket,address=9000,server=y,suspend=n"/>
7578
<arg value="--loop"/>
7679
<arg value="--name"/>

0 commit comments

Comments
 (0)