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

Rick Hillegas updated DERBY-3117:
---------------------------------

    Attachment: derby-3117-04-propertySetter-aa.diff

Attaching a first attempt to set the classpath properties automatically: 
derby-3117-04-propertySetter-aa.diff. I will run the regression tests in some 
combinations. In the meantime, I would appreciate your feedback.

This patch tries to set the classpath properties if they are not already set:

java14compile.classpath
java15compile.classpath

If the following library properties are set, they may influence how we set the 
corresponding classpath properties:

j14lib
j15lib

This tool behaves as follows:

1) If the classpath properties are set, nothing happens and we simply exit.

2) Otherwise, if a library property is set, we attempt to set the corresponding 
classpath property to be a list of all the jars in the directory pointed to by 
the library property.

3) Otherwise we try to set the classpath properties to values specific to the 
vendor of the running vm. In this first submission, the only supported jdk 
vendor is Apple. Hopefully, other vendors will be added later on.

4) Otherwise, if we don't recognize the vm vendor, we abort the build.


Touches the following files:

A      java/build/org/apache/derbyPreBuild/PropertySetter.java

This is the ant task which does the bulk of the work.


A      java/build/org/apache/derbyPreBuild
A      java/build/org/apache/derbyPreBuild/build.xml

Build machinery for the ant task.


M      build.xml

Wires the ant task into the main build. Some of the initial property setting 
has been moved into a new target so that the new task runs in a fairly sterile 
environment. The idea is that the new task is called on to set the classpath 
properties very early into the build. If you want to override the choices made 
by this task, you need to set the library or classpath properties in your 
ant.properties file.


> 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_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.

Reply via email to