|
2 | 2 | <!-- You may freely edit this file. See commented blocks below for --> |
3 | 3 | <!-- some examples of how to customize the build. --> |
4 | 4 | <!-- (If you delete it and reopen the project it will be recreated.) --> |
5 | | -<project name="nb-javac" default="default" basedir="."> |
| 5 | +<project name="nb-javac" default="default" basedir="." xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" > |
6 | 6 | <description>Builds, tests, and runs the project nb-javac.</description> |
7 | 7 | <import file="nbproject/build-impl.xml"/> |
8 | 8 | <!-- |
|
81 | 81 | </target> |
82 | 82 |
|
83 | 83 | <target name="-checkout-jdk" depends="-init-project,-check-jdk.is.available" unless="jdk.is.available"> |
84 | | - <exec failonerror="true" command="git" dir="${jdk.repo}/.."> |
| 84 | + <exec failonerror="true" executable="git" dir="${jdk.repo}/.."> |
85 | 85 | <arg value="clone"/> |
86 | 86 | <arg value="--depth=1"/> |
87 | 87 | <arg value="--branch"/> |
|
104 | 104 | <target name="-post-init" depends="-checkout-jdk"> |
105 | 105 | <available file="../../../../../nbbuild/netbeans/java/modules/ext" type="dir" property="modules.ext.exists"/> |
106 | 106 | </target> |
107 | | - |
| 107 | + |
108 | 108 | <target name="propertiesparser" depends="init"> |
109 | 109 | <mkdir dir="${root}/lib/propertiesparser"/> |
110 | | - <javac destdir="${root}/lib/propertiesparser" source="1.8" target="1.8" debug="true" srcdir="${jdk.repo}/make/langtools/tools/"> |
| 110 | + <javac destdir="${root}/lib/propertiesparser" source="1.8" target="1.8" release="8" debug="true" srcdir="${jdk.repo}/make/langtools/tools/"> |
111 | 111 | <include name="propertiesparser/**/*.java"/> |
112 | 112 | </javac> |
113 | 113 | <path id="propertiesparser"> |
|
148 | 148 | <arg value="${src.dir}/java.compiler/share/classes"/> |
149 | 149 | <arg value="${src.dir}/jdk.compiler/share/classes"/> |
150 | 150 | </java> |
151 | | - <exec command="patch" dir="${root}/src"> |
| 151 | + <exec executable="patch" dir="${root}/src"> |
152 | 152 | <arg value="-p1"/> |
153 | 153 | <arg value="-i"/> |
154 | 154 | <arg value="${root}/temporary-patches/manual-workarounds"/> |
155 | 155 | </exec> |
156 | 156 | <echo file="${src.dir}/jackpot-done">Jackpot done!</echo> |
157 | 157 | </target> |
158 | 158 |
|
159 | | - <target name="-pre-compile" depends="propertiesparser,jackpot"/> |
| 159 | + <target name="-pre-compile" depends="propertiesparser,jackpot"> |
| 160 | + <resources id="sun.reflect"> |
| 161 | + <javaresource name="sun/reflect/annotation/ExceptionProxy.class"/> |
| 162 | + <javaresource name="sun/reflect/annotation/AnnotationParser.class"/> |
| 163 | + <javaresource name="sun/reflect/annotation/AnnotationType.class"/> |
| 164 | + <javaresource name="sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.class"/> |
| 165 | + </resources> |
| 166 | + |
| 167 | + <mkdir dir="${tools.dir}/reflect"/> |
| 168 | + <copy todir="${tools.dir}/reflect"> |
| 169 | + <resources refid="sun.reflect"/> |
| 170 | + </copy> |
| 171 | + </target> |
160 | 172 |
|
161 | 173 | <target name="-init-macrodef-javac"> |
162 | 174 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> |
|
195 | 207 | <arg value="-encoding"/> |
196 | 208 | <arg value="UTF-8"/> |
197 | 209 | <arg value="-cp"/> |
198 | | - <arg value="@{classpath}"/> |
| 210 | + <arg value="${tools.dir}/reflect:@{classpath}"/> |
199 | 211 | <arg value="-d"/> |
200 | 212 | <arg value="@{destdir}"/> |
201 | 213 | <arg value="--target"/> |
|
0 commit comments