Passing properties from ant targetsI 'm trying to get a property that i set in a called ant target from the 'parent ' ant target. For example <target name "parent " > <antcall target "child " / > <echo message "${child.property} " /PMD - Try JCSCHi JCSC at http //jcsc.sourceforge.net seem pretty powerful. Ralph ) --- "Ciramella Edward " <ECiramella@(protected) > wrote > Sorry day late and a dollar short - I 've begun this > process. SorCan you get name of target to be run?Can you get the name of the target that is going to be run upon entry into the build file? I want to set a property based on what target is going to be run. Davewar task questionHi I have the following source organization I 'd like to get into a war file /lib/jar1.jar /lib/jar2.jar /lib/jar3.jar /build/myjar1.jar /build/myjar2.jar /images/image1.gif /images/image2.gif /confResolution of names in patternsetIs there a way to delay the string resolution of a patternset? Or re-source it? Basically I have a patternset that is set like this <patternset id "foo " > <include name "${bar}/some.jar > </patternant - setup/msdosI have MicroSoft ME system The problem that I have using ant is I have to run autoexec.bat in MSDOS everytime before I can use ant. I update the autoexec.bat and increased environment space to 4096.Help using XmlLogger?I 'm trying to use XmlLogger to see which tasks are taking the most time in a fairly big ant run. The log.xml file is getting cut short ending with unclosed tags and sometimes unclosed quotes. I susAW: HTTPUNITHi Christian What would you want an HTTPUNIT task to do that JUnit does not. AFAIK HttpUnit is just an API that is used from JUnit unit tests. You can just use the JUnit task. HTH Nick. -----UrsprHTTPUNITHi folks does anybody of you have a clue whether Ant supports Tasks for HTTPUNIT as it does for JUnit? Where can i find some informations about it ? Thank You so much! Christian SeginPMD StylesheetI 've seen a lot of talk about PMD and Ant lately so I think someone may find this useful... I 've created a stylesheet to convert PMD XML reports to HTML which can can be used in conjunction with tQuestion of using jdepend taskHi I try to run jdepend to check the project the task declare like this <target name "dependcheck " depends "compile " > <jdepend outputfile "jdepend.txt " > <sourcespath > <pathelementSpecific File Information In ManifestI would like to automatically add a line into the manifdst about each .java/.js/etc. file contained in a jar/war. This would contain file size date etc. information and ideally data (like programmDetailed File Information in ManifestI would like to automatically add a line into the manifdst about each .java/.js/etc. file contained in a jar/war. This would contain file size date etc. information and ideally data (like programmPrinting a pathOn page 80 of Erik Hatcher & Steve Loughran 's "Java Development with Ant " is given a technique for "Obtaining a string representation of a path ". Following this technique using a version of ant builnew release of VPP: 1.2.1A new release 1.2.1 of VPP is now available at http //sourceforge.net/projects/vpp/. This release implements a work around for an issue that causes external filter readers to be initialized on everScaling to large projectsI can 't figure how to set up Ant so that it will scale to be usable on a large project. Is there an 'Ant-way-of-doing-things ' that I haven 't grokked yet? For example suppose my source files areUsing ExecTask classHello. I want to use the ExecTask class from my own task. At the moment I do the following 1) Create a new ExecTask instance (et). 2) Calling et.setProject(getProject()). 3) Calling et.createArg().sUsing Ant With CVSCurrently I have a Build script that compiles and builds a project using ant. What I want to add to my script is the ability to take the latest files out of CVS and then build them. I added the tasGreebo and ClasspathHello I am using Greebo to get all dependent jars for my different projects. Now I have the question if it is possible to create the classpath for my projects also dynamically based on the dependencyCVS Tag Diff not parsed correctlyUsing the <cvstagdiff > task is getting confused with new and delete files. The CVS diff output is as follows - File mtcom/export/home/users/bv55user/wwwroot/html/branding/AH/summersun_02.gif is newcvs taskHi As part of my build I want to commit some files. Is there anyway to suppress the user user input requirement of the commit task. (it displays a a log file in notepad that you have to close anant/xdoclet for regression testsHello ! can u look at the forward ? hope it went through u otherwise let me know. ++. seb.Can you control order of fileset 's?I am using the foreach task from the ant-contrib project and am using a fileset for the looping variable. Is there a way to control the order of the items in the file set? It looks like it defaultsANT output to fileIs there a way to put the ant output on the screen to a file? I would like to email this to ppl on success and failure. Michael Medwith Flagstar Bank Wholesale Web Development Team This e-mail mMergeProperties TaskNot sure where to send this but figure if I send it to the group maybe it will be merged with the ant or ant-contrib offerings. I needed a task that would merge two property files such that the finTry - CatchI caught some emails earlier this month on a try catch I was wondering how that is working? Where can I get it? Does anyone use this? Praise? Complaints? Michael Medwith Flagstar Bank Wholesale Wejar update quesitonHi I 've been looking through this newsgroup and couldn 't find someone that asked this particular question... How do I use the <jar > task to update a jar file when only a few files in it has been upUrgent problem (Fixed)I download Java version 1.4 when I ran the command java org.apache.tools.ant.Main -verbose -buildfile echo.xml instead of giving me the old error it dected the latest version of java this seems tjunit task newbieokay i have not idea whats going on here junit [junit] Running com.ge.ps.cosmos.alert.Test_AlertFactory BUILD FAILED java.lang.LinkageError loader constraints violated when linking org/w3c/doPMDHas anyone here used pmd? It keeps blowing up on me saying "net.sourceforge.pmd.PMDException Error while parsing com/..... " But there isn 't a decent error message.
|