ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhay Kulkarni" <abh...@pune.tcs.co.in>
Subject Want to convert make to ANT
Date Mon, 08 Apr 2002 15:01:35 GMT
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.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message