You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Abhay Kulkarni <ab...@pune.tcs.co.in> on 2002/04/08 17:01:35 UTC
Want to convert make to ANT
hi!!!!
i want to convert following make file to xml file so that i can use ANT
USR_HOMEFS=$(HOME)\sachin\homefs
USR_HOMEBS=$(HOME)\sachin\homebs
USR_INTERNAL=$(USR_HOMEFS)\gencode\java
JAVADIR=$(USR_HOMEFS)\javafiles
CLASSDIR=$(USR_HOMEBS)\class
DRVJAVADIR=$(USR_HOMEFS)\gencode\java
SQLDIR=$(USR_HOMEFS)\sqlfiles
OWNCDF=$(HOME)\homefs\cdif\Company.cdf
OWNQUERYCLASSES=$(CLASSDIR)\q_DanglingCustomer.class
OWNJAVACLASSES=$(CLASSDIR)\Company1.class \
$(CLASSDIR)\Accounts.class \
$(CLASSDIR)\Customer.class \
$(CLASSDIR)\Item.class
buildworkspace : $(USR_INTERNAL)\fetchedWorkSpace $(OWNQUERYCLASSES) $(OWNJAVACLASSES)
$(USR_INTERNAL)\fetchedWorkSpace : $(OWNCDF)
$(PERL) $(BROOT)\bin\buildWorkspaceError.pl
$(CLASSDIR)\Company1.class : $(JAVADIR)\Company1.java
$(PERL) $(BROOT)\bin\java2class.pl $(JAVADIR)\Company1.java
$(CLASSDIR)\Accounts.class : $(JAVADIR)\Accounts.java
$(PERL) $(BROOT)\bin\java2class.pl $(JAVADIR)\Accounts.java
$(CLASSDIR)\q_DanglingCustomer.class : $(JAVADIR)\q_DanglingCustomer.java
$(PERL) $(BROOT)\bin\java2class.pl $(JAVADIR)\q_DanglingCustomer.java
$(JAVADIR)\q_DanglingCustomer.java : $(SQLDIR)\Company_q_DanglingCustomer.sql
$(PERL) $(BROOT)\bin\query2java.pl $(SQLDIR)\Company_q_DanglingCustomer.sql
Accounts_LogOff_135_drv : $(CLASSDIR)\Accounts.class $(CLASSDIR)\Accounts_LogOff_135_drv.class
$(CLASSDIR)\Accounts_LogOff_135_drv.class : $(JAVADIR)\Accounts_LogOff_135_drv.java
$(PERL) $(BROOT)\bin\java2class.pl $(DRVJAVADIR)\Accounts_LogOff_135_drv.java
Accounts_LogOn_134_drv : $(CLASSDIR)\Accounts.class $(CLASSDIR)\Accounts_LogOn_134_drv.class
$(CLASSDIR)\Accounts_LogOn_134_drv.class : $(JAVADIR)\Accounts_LogOn_134_drv.java
$(PERL) $(BROOT)\bin\java2class.pl $(DRVJAVADIR)\Accounts_LogOn_134_drv.java
Company1_BT_AddCompany_99_drv : $(CLASSDIR)\Company1.class $(CLASSDIR)\Company1_BT_AddCompany_99_drv.class
$(CLASSDIR)\Company1_BT_AddCompany_99_drv.class : $(JAVADIR)\Company1_BT_AddCompany_99_drv.java
$(PERL) $(BROOT)\bin\java2class.pl $(DRVJAVADIR)\Company1_BT_AddCompany_99_drv.java
Company1_BT_DeleteCompany_106_drv : $(CLASSDIR)\Company1.class $(CLASSDIR)\Company1_BT_DeleteCompany_106_drv.class
$(CLASSDIR)\Company1_BT_DeleteCompany_106_drv.class : $(JAVADIR)\Company1_BT_DeleteCompany_106_drv.java
$(PERL) $(BROOT)\bin\java2class.pl $(DRVJAVADIR)\Company1_BT_DeleteCompany_106_drv.java
make expends the macro (in this case they are OWNQUERYCLASSES and OWNJAVACLASSES )
and each value of macro (OWNJAVACLASSES) becomes target (in this case $(CLASSDIR)\Company1.class , $(CLASSDIR)\Accounts.class etc.)
same for macro OWNQUERYCLASSES
so how can i do it in ANT
is there any feature
Regards,
Abhay.