db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Nielsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3117) Adjust master build script to require the Java 5 compiler to build Derby
Date Thu, 08 Nov 2007 18:48:50 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541104
] 

Thomas Nielsen commented on DERBY-3117:
---------------------------------------

I applied derby-3117-04-propertySetter-ad.diff on WinXP with Suns 1.6.0_03, and 

1) the build works fine without changing my existing ant.properties

2) cleaning my sandbox with 'ant clobber', then removing ant.properties, and attempting a
rebuild fails as below:
---
...
setCompilerProperties:
[setJdkProperties] Directory C:\program files\java\jdk1.6.0_03\jre\..\..\jre1.5.0_13\jre\lib
does not exist.
[setJdkProperties] Don't know how to set java15compile.classpath. Please consult
 BUILDING.txt for instructions on how to set the jdk-library and compiler-classpath properties.
[setJdkProperties] Don't know how to set java15compile.classpath. Please consult
 BUILDING.txt for instructions on how to set the jdk-library and compiler-classpath properties.
[setJdkProperties]      at org.apache.derbyPreBuild.PropertySetter.couldntSetProperty(PropertySetter.java:548)
[setJdkProperties]      at org.apache.derbyPreBuild.PropertySetter.setClasspathFromLib(PropertySetter.java:371)
[setJdkProperties]      at org.apache.derbyPreBuild.PropertySetter.defaultSetter(PropertySetter.java:349)
[setJdkProperties]      at org.apache.derbyPreBuild.PropertySetter.setForMostJDKs(PropertySetter.java:309)
[setJdkProperties]      at org.apache.derbyPreBuild.PropertySetter.setForSunJDKs(PropertySetter.java:276)
[setJdkProperties]      at org.apache.derbyPreBuild.PropertySetter.execute(PropertySetter.java:206)
[setJdkProperties]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[setJdkProperties]      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[setJdkProperties]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[setJdkProperties]      at java.lang.reflect.Method.invoke(Method.java:597)
[setJdkProperties]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[setJdkProperties]      at org.apache.tools.ant.Task.perform(Task.java:348)
[setJdkProperties]      at org.apache.tools.ant.Target.execute(Target.java:357)
[setJdkProperties]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
[setJdkProperties]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[setJdkProperties]      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
[setJdkProperties]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[setJdkProperties]      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[setJdkProperties]      at org.apache.tools.ant.Main.runBuild(Main.java:698)
[setJdkProperties]      at org.apache.tools.ant.Main.startAnt(Main.java:199)
[setJdkProperties]      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[setJdkProperties]      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

BUILD FAILED
C:\MyProjects\derby\trunk\build.xml:184: Don't know how to set java15compile.classpath. 
Please consult BUILDING.txt for instructions on how to set the jdk-library and compiler-classpath
properties.

Total time: 2 seconds
---

It seems the current patch does not actually take the exact java compiler version into consideration,
but assumes 1.5. 
 "  [setJdkProperties] Directory C:\program files\java\jdk1.6.0_03\jre\..\..\jre1.5.0_13\jre\lib
does not exist."

> Adjust master build script to require the Java 5 compiler to build Derby
> ------------------------------------------------------------------------
>
>                 Key: DERBY-3117
>                 URL: https://issues.apache.org/jira/browse/DERBY-3117
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.4.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>         Attachments: BuildDefaults.txt, derby-3117-01-enforceJava5-aa.diff, derby-3117-01-enforceJava5-ab.diff,
derby-3117-01-enforceJava5-ac.diff, derby-3117-02-website-aa.diff, derby-3117-03-junit-aa.diff,
derby-3117-04-propertySetter-aa.diff, derby-3117-04-propertySetter-ab.diff, derby-3117-04-propertySetter-ac.diff,
derby-3117-04-propertySetter-ad.diff, derby_source.html
>
>
> Require the Java 5 compiler in order to build Derby as approved by the community recently:
http://www.nabble.com/-VOTE--Require-Java-5-%28or-later%29-compiler-to-build-Derby-tf4522491.html#a13030783

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message