|
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 | <!--
|
|
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/"> |
111 |
| - <include name="propertiesparser/**/*.java"/> |
112 |
| - </javac> |
| 110 | + <j2seproject3:javac destdir="${root}/lib/propertiesparser" debug="true" srcdir="${jdk.repo}/make/langtools/tools/" includes="propertiesparser/**/*.java"/> |
113 | 111 | <path id="propertiesparser">
|
114 | 112 | <pathelement location="${root}/lib/propertiesparser"/>
|
115 | 113 | <pathelement location="${jdk.repo}/make/langtools/tools/"/>
|
|
156 | 154 | <echo file="${src.dir}/jackpot-done">Jackpot done!</echo>
|
157 | 155 | </target>
|
158 | 156 |
|
159 |
| - <target name="-pre-compile" depends="propertiesparser,jackpot"/> |
| 157 | + <target name="-pre-compile" depends="propertiesparser,jackpot"> |
| 158 | + <resources id="sun.reflect"> |
| 159 | + <javaresource name="sun/reflect/annotation/ExceptionProxy.class"/> |
| 160 | + <javaresource name="sun/reflect/annotation/AnnotationParser.class"/> |
| 161 | + <javaresource name="sun/reflect/annotation/AnnotationType.class"/> |
| 162 | + <javaresource name="sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.class"/> |
| 163 | + </resources> |
| 164 | + |
| 165 | + <mkdir dir="${tools.dir}/reflect"/> |
| 166 | + <copy todir="${tools.dir}/reflect"> |
| 167 | + <resources refid="sun.reflect"/> |
| 168 | + </copy> |
| 169 | + </target> |
160 | 170 |
|
161 | 171 | <target name="-init-macrodef-javac">
|
162 | 172 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
|
195 | 205 | <arg value="-encoding"/>
|
196 | 206 | <arg value="UTF-8"/>
|
197 | 207 | <arg value="-cp"/>
|
198 |
| - <arg value="@{classpath}"/> |
| 208 | + <arg value="${tools.dir}/reflect:@{classpath}"/> |
199 | 209 | <arg value="-d"/>
|
200 | 210 | <arg value="@{destdir}"/>
|
201 | 211 | <arg value="--target"/>
|
|
0 commit comments