Conditional tasksI 'm trying to figure out how to call a task conditionally. From what I see I can set properties with a condition but how can I traslate that to a task. For example I only want to send mail to peoplDependencies in reverse?I 'm trying to write a target that will update files from a version control system called "Razor " which is SCCS-based. I have one directory some-path/SCCS which is a tree of version control filesPb with copy and present selectorHello I 'm trying desperately to overwrite files from a source directory if they exist in a target directory. The source and target directory have not the same hierarchy source is flat and directoryIs it possible to configure the include and exclude of tar task outside of b--- Leon Pu <leon_xf_pu@(protected) > wrote [SNIP] > Is there any other way or tool can be used to > configure the include and > exclude of tar task outside of build xml file? > Have a look at theAW: Pattern matching the value of a propertyAntContrib <propertyregex > <propertyregex property "version.wrong " input "${versionstring} " regex "\d{1}\.\d{1}\.\d{1-2} " replace " "/ > <fail message "versionstring is wrong " if "version.wrong "/ > JusAW: Is it possible to configure the include and exclude of tar task outside of bbuild.properties tar.dir . tar.includes **/*.txt tar.excludes **/*.bak **/*~* build.xml <property file "build.properties "/ > <tar ... > <fileset dir "${tar.dir} " includes "${tar.incluIs it possible to configure the include and exclude of tar task outside of buildHi all currently we cannot use ant-contrib 's <for > task inside the tarfileset so I have to hard code the includes and excludes in the build xml file. But it 's better to write these setting in the pPattern matching the value of a propertyI have a wrapper which expects to receive a version string (\d{1}\.\d{1}\.\d{1-2}) and pass it to Ant as a -DPROPERTY VALUE pair. I want to perform validation on the version string to insure that iIs it possible to trigger a output log file while running a target?Hi all is it possible to trigger a output log file while running a target? Not output log file by command ant. Best regards LeonAW: optional tasks without disturbing the ant/lib folder>what would be really nice is if there were two "namespaces " >available for a given optional task. such that the task in the >ant/lib/ant-jsch.jar would >have > > <taskdef name "scp " classname " >org.optional tasks without disturbing the ant/lib folderi 'm interested in using some of the ant optional tasks without distrubing the ant-lib folder. basically i want to provide all the needed jars as part of my tools area and not have each machine thaComparing Jar FilesHi All This is not directly related to Ant but I would be grateful if someone can tell me how to compare two Jar files to find out the set of files that are in one jar but not the other. RegardsAW: regexpreplace help...<replaceregexp > Jan >-----Urspr?ngliche Nachricht----- >Von Mark Lybarger [mailto mlybarger@(protected)] >Gesendet Montag 15. August 2005 14 25 >An Ant Users List >Betreff regexpreplace help... >regexpreplace help...I 'm not much of a regex person and maybe there 's an easier way to accomplish this. I 've got an apache config file for using url rewriting. The rewrite rules look something like RewriteRule ^/appAW: xslt exceptionI would guess that your xsl stylesheet is not valid. For quick checks I use a browser (it?s integrated xslt) - copy your xml - insert a reference to your stylesheet <?xml-stylesheet type "text/xslxslt exceptionHi here are the error messages I get from an xslt task. The stack trace is also not very descriptive... does someone know what this means? Cheers Ron [xslt] Loading stylesheet /home/ron1/workspAW: AW: Call Ant task from java fileChange <fileset dir "someDir " includes "**/CVS " defaultexcludes "no "/ > to <fileset dir "someDir " includes "**/CVS/ " defaultexcludes "no "/ > A "**/CVS " catches only a file CVS but not all files inOpen a shell and run a batchfileHi i??d like to automate some tasks under Win 2000 Server. A dos box should open and a batch file should be executed therwith the user can read the batchfiles output. There are tons of examples lzipfile with manifest<http //ant.apache.org/manual/CoreTasks/manifest.html > seems to be saying that ant creates the manifest in the standard place the META-INF directory specified by <http //java.sun.com/j2se/1.5.0/docsQuestion about deprecationHi I 'm new to the mailing list and have a question about compiling deprecated classes. Is it possible when compiling with Ant to arrange the compilation so that deprecated classes are not ignoreAnt dependencies taskDoes anyone have any experience with this add-on? http //www.httpunit.org/doc/dependencies.html It works great for me but one problem I have is that my build scripts usually have a single "build " tAW: Call Ant task from java fileHi Steffen "First question What am I doing wrong? " You didn 't specify what 's going wrong when you run your code. I recommend writing an Ant task first and then use it outside of a build.xml insteCall Ant task from java fileHi I 'm new to ant tasks and their use outside of ant. I want to execute ent tasks outside of build.xml in a simple java class. My sample source code (inside a public static method of a plugin) -Editing properties<project > <property name "s " value "ABCDE-DEVELOPMENT "/ > <echo >${s} </echo > </project > I 've had a quick look around and I am stuck. How do I remove ABCDE- from the string s?Janu Mohandass is out of the office.I will be out of the office starting 08/12/2005 and will not return until 08/16/2005. I will respond to your messages after I come back. For Urgent build related issues contact Subhrata ParichhMultiple <sshexec > invocationsFirst time <sshexec > user so please be gentle -) I 'm using Ant 1.6.2 with Jsch 0.1.21. I 'm a bit baffled by the results I get using <sshexec >. The session below shows all relevant information. IfScp : Definition of a remote file setI would like to copy many files from a remote server to my localhost. I wondered if the following sytnax could be used <scp todir ". " verbose "${verbose.flag} " knownhosts "${SPLASH taskHi Ok this is not really important but I would like to make this splash task work ... <setproxy proxyhost "${proxy.ip} " proxyport "8080 "/ > <splash imageurl "http //www.biwa.ne.jp/~AW: Building Applet JarsHave a look at <pack > [1]. Jan [1] http //ant.apache.org/external.html#pack >-----Urspr?ngliche Nachricht----- >Von Yasseen Omar [mailto Omar.Yasseen@(protected)] >Gesendet Donnerstag 11. AuBuilding Applet JarsHi All This is my first question Currently my team use JBuilder as the Java IDE and JBuilder is used in our build process. I 'm trying to help the team break away from the dependency on JBuilder f
|