Skip to content

Commit 87f2190

Browse files
committed
more generic, cleaning up dirs
1 parent fc340be commit 87f2190

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

build/jre/build.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
<target name="compile">
44
<mkdir dir="bin" />
5+
6+
<!-- Where can I expect to find Java Mode JARs? -->
7+
<property name="java.mode" value="../../java/mode/" />
58

69
<!-- Check for JDT compiler, since this is likely a PDE build. Using
710
it allows us to build the PDE with only a JRE on Windows and Linux.
811
So that the core can be built independently of the PDE,
912
use javac (the "modern" compiler) if ecj is not present. -->
10-
<property name="jdt.jar" value="../java/mode/org.eclipse.jdt.core.jar" />
13+
<property name="jdt.jar" value="${java.mode}/org.eclipse.jdt.core.jar" />
1114
<condition property="build.compiler"
1215
value="org.eclipse.jdt.core.JDTCompilerAdapter"
1316
else="modern">
@@ -22,7 +25,8 @@
2225
debug="true"
2326
includeantruntime="true"
2427
nowarn="true">
25-
<compilerclasspath path="${jdt.jar}; ../../java/mode/jdtCompilerAdapter.jar" />
28+
<!-- kinda gross, but if not using the JDT, this just ignored anyway -->
29+
<compilerclasspath path="${jdt.jar}; ${java.mode}/jdtCompilerAdapter.jar" />
2630
</javac>
2731
</target>
2832

core/build.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020
classpath="methods/methods.jar" />
2121
<methods dir="${basedir}/src/processing/core" recorder="true" />
2222

23+
<!-- Where can I expect to find Java Mode JARs? -->
24+
<property name="java.mode" value="../java/mode/" />
25+
2326
<!-- Check for JDT compiler, since this is likely a PDE build. Using
2427
it allows us to build the PDE with only a JRE on Windows and Linux.
2528
So that the core can be built independently of the PDE,
2629
use javac (the "modern" compiler) if ecj is not present. -->
27-
<property name="jdt.jar" value="../java/mode/org.eclipse.jdt.core.jar" />
30+
<property name="jdt.jar" value="${java.mode}/org.eclipse.jdt.core.jar" />
2831
<condition property="build.compiler"
2932
value="org.eclipse.jdt.core.JDTCompilerAdapter"
3033
else="modern">
@@ -50,7 +53,7 @@
5053
library/gluegen-rt.jar"
5154
nowarn="true">
5255
<!-- kinda gross, but if not using the JDT, this just ignored anyway -->
53-
<compilerclasspath path="${jdt.jar}; ../java/mode/jdtCompilerAdapter.jar" />
56+
<compilerclasspath path="${jdt.jar}; ${java.mode}/jdtCompilerAdapter.jar" />
5457
<src path="src" />
5558
<include name="processing/**" />
5659
<exclude name="processing/javafx/**" if="fx.unavailable" />

0 commit comments

Comments
 (0)