Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:Windows XP
Running java 1.4.2_03
Compiling for java 1.3.1_09
Description
I believe that the following code is required in maven-java-pluging-1.3/plugin.jelly to get the java compiler to generate code for a prior release:
<j:if test="${context.getVariable('maven.compile.bootclasspath') != null}">
<ant:bootclasspath>
<ant:pathelement path="${maven.compile.bootclasspath}"/>
</ant:bootclasspath>
</j:if>
<j:if test="${context.getVariable('maven.compile.extdirs') != null}">
<ant:bootclasspath>
<ant:pathelement path="${maven.compile.extdirs}"/>
</ant:bootclasspath>
</j:if>
In addition, I use the following statements in my ~/build.properties:
maven.compile.source=1.3
maven.compile.target=1.3
- jce/jdk only required for 1.3 and less
jce_path=c:/javasoft/jce-1_2_2
jdk_path=c:/javasoft/j2sdk-1_3_1-09
maven.compile.bootclasspath=${jdk_path}/lib/tools.jar;${jdk_path}/lib/dt.jar;${jdk_path}/jre/lib/rt.jar;${jdk_path}/jre/lib/jaws.jar;${jdk_path}/jre/lib/i18n.jar;${jce_path}/lib/jce1_2_2.jar
Thanks,
Issue Links
- is depended upon by
-
MAVEN-1244
plugin issues to fix for RC3
-
Not sure I understand why this is needed. Can you give some reasons, and a proper cvs diff -u patch?