Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "User talk:Gaurangtpatel.gmail.com"
(Project proposal) |
(→Project proposal) |
||
Line 5: | Line 5: | ||
Prorject Title: Ant buildfile refactorings | Prorject Title: Ant buildfile refactorings | ||
+ | |||
+ | |||
+ | I will make use of ant macros to achieve re usability of scripts: | ||
+ | |||
+ | |||
+ | == A macrodef for compiling Java code using the javac Ant task could look like this: == | ||
+ | |||
+ | |||
+ | <macrodef name="m_compile"> | ||
+ | <attribute name="build.dir" default="${build.dir}" /> | ||
+ | <attribute name="classpath.id" default="default.classpath" /> | ||
+ | <attribute name="src.dir" default="${src.java.dir}" /> | ||
+ | <sequential> | ||
+ | <mkdir dir="@{build.dir}" /> | ||
+ | <javac destdir="@{build.dir}" debug="${debug}" | ||
+ | optimize="${optimize}"> | ||
+ | <classpath refid="@{classpath.id}" /> | ||
+ | <src path="@{src.dir}" /> | ||
+ | </javac> | ||
+ | </sequential> | ||
+ | </macrodef> |
Revision as of 13:56, 3 April 2009
Project proposal
This is project proposal for Google SoC 2009.
Prorject Title: Ant buildfile refactorings
I will make use of ant macros to achieve re usability of scripts:
A macrodef for compiling Java code using the javac Ant task could look like this:
<macrodef name="m_compile">
<attribute name="build.dir" default="${build.dir}" /> <attribute name="classpath.id" default="default.classpath" /> <attribute name="src.dir" default="${src.java.dir}" /> <sequential> <mkdir dir="@{build.dir}" /> <javac destdir="@{build.dir}" debug="${debug}" optimize="${optimize}"> <classpath refid="@{classpath.id}" /> <src path="@{src.dir}" /> </javac> </sequential>
</macrodef>