Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1783 - development/main/magic/core/src/main/net/dpml/magic/tasks

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: herzog AT raffael.ch
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1783 - development/main/magic/core/src/main/net/dpml/magic/tasks
  • Date: Mon, 14 Feb 2005 17:26:09 +0100

Author: herzog AT raffael.ch
Date: Mon Feb 14 17:26:08 2005
New Revision: 1783

Modified:
development/main/magic/core/src/main/net/dpml/magic/tasks/JavacTask.java
Log:
Added two new properties: project.javac.source and project.javac.target,
which may be used to set the source/target Java version.

Modified:
development/main/magic/core/src/main/net/dpml/magic/tasks/JavacTask.java
==============================================================================
--- development/main/magic/core/src/main/net/dpml/magic/tasks/JavacTask.java
(original)
+++ development/main/magic/core/src/main/net/dpml/magic/tasks/JavacTask.java
Mon Feb 14 17:26:08 2005
@@ -53,6 +53,10 @@
public static final String DEPRECATION_KEY = "project.javac.deprecation";
public static final boolean DEPRECATION_VALUE = true;

+ public static final String SOURCE_KEY = "project.javac.source";
+
+ public static final String TARGET_KEY = "project.javac.target";
+
public void init() throws BuildException
{
if( !isInitialized() )
@@ -133,6 +137,8 @@
javac.setDeprecation( getDeprecationProperty() );
javac.setDebug( getDebugProperty() );
javac.setFork( getForkProperty() );
+ javac.setSource( getSourceProperty() );
+ javac.setTarget( getTargetProperty() );
javac.setClasspath( classpath );
javac.init();
javac.execute();
@@ -153,6 +159,16 @@
return getBooleanProperty( FORK_KEY, FORK_VALUE );
}

+ private String getSourceProperty()
+ {
+ return getProject().getProperty( SOURCE_KEY );
+ }
+
+ private String getTargetProperty()
+ {
+ return getProject().getProperty( TARGET_KEY );
+ }
+
private boolean getBooleanProperty( final String key, final boolean
fallback )
{
final String value = getProject().getProperty( key );



  • svn commit: r1783 - development/main/magic/core/src/main/net/dpml/magic/tasks, herzog, 02/14/2005

Archive powered by MHonArc 2.6.24.

Top of Page