Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to assign variables like Ant?

807606Apr 27 2007 — edited Apr 29 2007
This is a Ant config file named build.xml:

<property file="${basedir}/build.properties" />
<property name="Name" value="ProjectFullName"/> //setting some variables for later using...
<property name="name" value="project_name"/>
<property name="version" value="0.2"/>
<property name="year" value="2003"/>

<echo message="----------- ${Name} ${version} [${year}] ------------"/>//use the variables which has been set before...

I need do the same work like ant does.
Q1: Is there any component can solved this work? What name is it?
Q2: If the component exists, Can it be seperated to "local scope" and "global scope"?

Thank you and best regards!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2007
Added on Apr 27 2007
16 comments
311 views