Ejen Logo
 
   <property>


Description
Property node is an Ant specific node in Ejen: it gives a way to export a parameter in order to use it in any other Ant task.
 
...
<target name="build">

  <ejen>
    <source uri="class-definition.xml"/>
    <template save="{@class-name}.java" uri="java.xsl"/>
    <property name="java-file" value="{@class-name}.java"/>
  </ejen>

  <javac
    destdir="."
    includes="${java-file}"
    srcdir="."/>

</target>
...

A stylesheet named "java.xsl" is used in order to generate, based on the "class-definition.xml" input file, a java source file whose name depends on a "class-name" attribute. Then, we export this java source file name as an Ant property in order to use it later in the javac task.

Attribute Summary
 
NameDefault ValueOptionalAccepted Values
name false 
value false 

Attribute Detail
 
name
name of the property.
value
value of the property.

Children
 
No.


SourceForge.net Logo