FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

next stage of mess · kosowski/processing@850f576 · GitHub

Repository navigation

Commit 850f576

Browse files
committed
next stage of mess
1 parent 736a102 commit 850f576

10 files changed

Lines changed: 16 additions & 49 deletions

‎app/build.xml‎

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,16 @@
11
<?xml version="1.0"?>
22
<project name="Processing PDE" default="build">
33

4-
<property name="generated"
5-
value="${basedir}/generated/processing/mode/java/preproc" />
6-
<mkdir dir="${generated}" />
7-
8-
<property name="grammars"
9-
value="${basedir}/src/processing/mode/java/preproc" />
10-
11-
<property name="antlrjar"
12-
value="${basedir}/lib/antlr.jar" />
13-
14-
<classloader taskname="antlr">
15-
<classpath path="lib/antlr.jar" />
16-
</classloader>
17-
184
<target name="clean" description="Clean the build directories">
195
<delete dir="bin" />
206
<delete file="pde.jar" />
21-
<delete>
22-
<fileset dir="${generated}">
23-
<include name="*.java" />
24-
<include name="*.tokens" />
25-
<include name="*.txt" />
26-
<include name="*.g" />
27-
<include name="*.smap" />
28-
<include name="*.properties" />
29-
</fileset>
30-
</delete>
31-
</target>
32-
33-
<!--<target name="preproc" depends="clean" description="Compile ANTLR grammar">-->
34-
<target name="preproc" description="Compile ANTLR grammar">
35-
<antlr target="${grammars}/java15.g" outputdirectory="${generated}">
36-
<classpath path="${antlrjar}" />
37-
</antlr>
38-
<antlr target="${grammars}/pde.g"
39-
outputdirectory="${generated}"
40-
glib="${grammars}/java15.g">
41-
<classpath path="${antlrjar}" />
42-
</antlr>
437
</target>
448

45-
<target name="compile" depends="preproc" description="Compile sources">
9+
<target name="compile" description="Compile sources">
4610
<condition property="core-built">
4711
<available file="../core/library/core.jar" />
4812
</condition>
49-
<fail unless="core-built"
50-
message="Please build the core library first and make sure it sits in ../core/library/core.jar" />
13+
<fail unless="core-built" message="Please build the core library first and make sure it is located at ../core/library/core.jar" />
5114

5215
<mkdir dir="bin" />
5316

@@ -71,13 +34,16 @@
7134
excludes="**/tools/format/**"
7235
encoding="UTF-8"
7336
includeAntRuntime="false"
74-
classpath="../core/library/core.jar; lib/ant.jar; lib/ant-launcher.jar; lib/antlr.jar; lib/apple.jar; lib/jdt-core.jar; lib/jna.jar; lib/org-netbeans-swing-outline.jar;lib/com.ibm.icu_4.4.2.v20110823.jar;lib/jdi.jar;lib/jdimodel.jar;lib/org.eclipse.osgi_3.8.1.v20120830-144521.jar"
37+
classpath="../core/library/core.jar;
38+
lib/ant.jar; lib/ant-launcher.jar;
39+
lib/apple.jar;
40+
lib/jna.jar"
7541
debug="on"
7642
nowarn="true"
7743
compiler="org.eclipse.jdt.core.JDTCompilerAdapter">
7844
<src path="src" />
79-
<src path="generated" />
80-
<compilerclasspath path="../java/mode/ecj.jar" />
45+
<compilerclasspath path="../java/mode/org.eclipse.jdt.core.jar;
46+
../java/mode/jdtCompilerAdapter.jar" />
8147
</javac>
8248
</target>
8349

-6.39 MB
Binary file not shown.

‎app/lib/jdi.jar‎

-69.3 KB
Binary file not shown.

‎app/lib/jdimodel.jar‎

-842 KB
Binary file not shown.
-1.33 MB
Binary file not shown.

‎core/build.xml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
classpath="methods/methods.jar" />
1313
<methods dir="${basedir}/src/processing/core" recorder="true" />
1414

15-
<!-- Check for ecj.jar, since this is likely a PDE build. Using ECJ
16-
allows us to build the PDE with only a JRE on Windows and Linux.
15+
<!-- Check for JDT compiler, since this is likely a PDE build. Using
16+
it allows us to build the PDE with only a JRE on Windows and Linux.
1717
So that the core can be built independently of the PDE,
1818
use javac (the "modern" compiler) if ecj is not present. -->
19-
<property name="ecj.jar" value="../java/mode/ecj.jar" />
19+
<property name="jdt.jar" value="../java/mode/org.eclipse.jdt.core.jar" />
2020
<condition property="build.compiler"
2121
value="org.eclipse.jdt.core.JDTCompilerAdapter"
2222
else="modern">
23-
<available file="${ecj.jar}" />
23+
<available file="${jdt.jar}" />
2424
</condition>
2525
<!--<echo message="compiler is ${build.compiler}" />-->
2626

@@ -34,7 +34,7 @@
3434
classpath="library/jogl-all.jar; library/gluegen-rt.jar"
3535
nowarn="true">
3636
<!-- kinda gross, but if not using ecj, this just ignored anyway -->
37-
<compilerclasspath path="${ecj.jar}" />
37+
<compilerclasspath path="${jdt.jar}; ../java/mode/jdtCompilerAdapter.jar" />
3838
</javac>
3939

4040
<!-- Copy the jnilib to the bin folder so it's included. -->
File renamed without changes.

‎java/mode/readme.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ http://download.eclipse.org/eclipse/downloads/
44
File listing at:
55
http://download.eclipse.org/eclipse/updates/4.4/R-4.4.1-201409250400/plugins/?d
66

7-
The jdi.jar and jdimodel.jar files are unpacked
8-
from the org.eclipse.jdt.debug JAR file.
7+
The jdtCompilerAdapter.jar is extracted from org.eclipse.jdt.core.jar to provide
8+
the JDTCompilerAdapter class, which is the Ant task for the JDT compiler.
9+
The jdi.jar and jdimodel.jar files are unpacked from org.eclipse.jdt.debug.jar.
910

1011
This Mode does not use ecj.jar from the original Java mode, because its files are contained in the JARs below.
1112

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL