| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,53 +1,16 @@ | |||
| 1 | 1 | <?xml version="1.0"?> | |
| 2 | 2 | <project name="Processing PDE" default="build"> | |
| 3 | 3 | ||
| 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 | - | ||
| 18 | 4 | <target name="clean" description="Clean the build directories"> | |
| 19 | 5 | <delete dir="bin" /> | |
| 20 | 6 | <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> | ||
| 43 | 7 | </target> | |
| 44 | 8 | ||
| 45 | - <target name="compile" depends="preproc" description="Compile sources"> | ||
| 9 | + <target name="compile" description="Compile sources"> | ||
| 46 | 10 | <condition property="core-built"> | |
| 47 | 11 | <available file="../core/library/core.jar" /> | |
| 48 | 12 | </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" /> | ||
| 51 | 14 | ||
| 52 | 15 | <mkdir dir="bin" /> | |
| 53 | 16 | ||
@@ -71,13 +34,16 @@ | |||
| 71 | 34 | excludes="**/tools/format/**" | |
| 72 | 35 | encoding="UTF-8" | |
| 73 | 36 | 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" | ||
| 75 | 41 | debug="on" | |
| 76 | 42 | nowarn="true" | |
| 77 | 43 | compiler="org.eclipse.jdt.core.JDTCompilerAdapter"> | |
| 78 | 44 | <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" /> | ||
| 81 | 47 | </javac> | |
| 82 | 48 | </target> | |
| 83 | 49 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,15 +12,15 @@ | |||
| 12 | 12 | classpath="methods/methods.jar" /> | |
| 13 | 13 | <methods dir="${basedir}/src/processing/core" recorder="true" /> | |
| 14 | 14 | ||
| 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. | ||
| 17 | 17 | So that the core can be built independently of the PDE, | |
| 18 | 18 | 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" /> | ||
| 20 | 20 | <condition property="build.compiler" | |
| 21 | 21 | value="org.eclipse.jdt.core.JDTCompilerAdapter" | |
| 22 | 22 | else="modern"> | |
| 23 | - <available file="${ecj.jar}" /> | ||
| 23 | + <available file="${jdt.jar}" /> | ||
| 24 | 24 | </condition> | |
| 25 | 25 | <!--<echo message="compiler is ${build.compiler}" />--> | |
| 26 | 26 | ||
@@ -34,7 +34,7 @@ | |||
| 34 | 34 | classpath="library/jogl-all.jar; library/gluegen-rt.jar" | |
| 35 | 35 | nowarn="true"> | |
| 36 | 36 | <!-- 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" /> | ||
| 38 | 38 | </javac> | |
| 39 | 39 | ||
| 40 | 40 | <!-- Copy the jnilib to the bin folder so it's included. --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,9 @@ http://download.eclipse.org/eclipse/downloads/ | |||
| 4 | 4 | File listing at: | |
| 5 | 5 | http://download.eclipse.org/eclipse/updates/4.4/R-4.4.1-201409250400/plugins/?d | |
| 6 | 6 | ||
| 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. | ||
| 9 | 10 | ||
| 10 | 11 | This Mode does not use ecj.jar from the original Java mode, because its files are contained in the JARs below. | |
| 11 | 12 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments