ant

ant java task with space issue

岁酱吖の 提交于 2019-12-25 05:14:00
问题 I was trying to execute a jar file via ant script. Like this <java jar="${jar.file}" fork="true" failonerror="true"> <arg line="${jar.args}"/> </java> jar.file has full path to the jar file and contains some space in it. When I executed that on Linux, there was no problem. But when I do the same on Windows I got error. java task couldn't locate the jar! I've tried all different variations like wrapping the file path with quote ("), replaced space with ", tried escaping with backslash, etc.

Convert Makefile content to Apache Ant

淺唱寂寞╮ 提交于 2019-12-25 05:07:08
问题 What would be the syntax in 'build.xml' of an Ant build system that corresponds to the following content of a Makefile (GNU Make): target: dependency0 dependency1 shell command 1 # Not java, cc or the like shell command 2 shell command 3 回答1: Example $ ant dependency0: [echo] Hello world one dependency1: [echo] Hello world two build: [exec] command 1 [exec] command 2 [exec] command 3 build.xml <project name="demo" default="build"> <target name="dependency0"> <echo>Hello world one</echo> <

To get build status through environment variable

荒凉一梦 提交于 2019-12-25 05:05:48
问题 I am using jenkins for continous integration. For my build purpose, i triggering email using Ant task. I am not able to find an environment variable to pass ant for sending email build status(success/failure/stable). i want to know how can i get environment variable for build status?..if not available, what is the alternative option for build status? Thanks in Advance varghese 回答1: Why use ANT to send emails from Jenkins when you have two great plugins that does just that? The default mail

Echo a single line of an SvnAnt error message using Ant

我只是一个虾纸丫 提交于 2019-12-25 05:05:11
问题 If the SvnAnt <export> has an error, the Ant <loadfile> task will show all of it on the console. <svn refid="svn.settings" logFile="C:/Logfile.log"> <export destpath="LOCAL Location" srcUrl="Source Url" /> </svn> <loadfile property="svnLog" srcFile="C:/Logfile.log"/> <echo>${svnLog}</echo> [echo] <Export> started ... [echo] export --no-auth-cache -r HEAD https://lbsm8-svn.path.local/svn/DB_Scripts/SCRIPTS/Reporting/FTR/ORAX/ftr1241000000430105_orax.pbd D:\Copyof\anttt\RET\ORA [echo] svn:

Permission denied using ant and scp

不问归期 提交于 2019-12-25 04:53:27
问题 In my ant file, I scp a java war file to a test server. As soon as I switched over to java 1.7, due to project requirements, the ant file is throwing a permission denied error: BUILD FAILED C:\Users\jdoe\Documents\code\build2\projectName\build.xml:72: com.jcraf t.jsch.JSchException: java.net.SocketException: Permission denied: connect at com.jcraft.jsch.Util.createSocket(Util.java:344) at com.jcraft.jsch.Session.connect(Session.java:194) at com.jcraft.jsch.Session.connect(Session.java:162) at

ANT: Build Failed: failed to create task or type testng:

牧云@^-^@ 提交于 2019-12-25 04:29:42
问题 <project name="name" default="test" basedir="."> <!-- Define <testng> task --> <taskdef resource="testngtasks"> <classpath> <pathelement location="/lib/testng-6.8.5.jar"/> </classpath> </taskdef> <property name="testdir" location="test" /> <property name="srcdir" location="src" /> <property name="libdir" location="lib" /> <property name="full-compile" value="true" /> <path id="classpath.base"/> <path id="classpath.test"> <fileset dir="${libdir}"> <include name="**/*.jar" /> </fileset>

Ant tasks for JIRA

心不动则不痛 提交于 2019-12-25 03:59:34
问题 Is it possible to create JIRA issues using Ant tasks? I'd like to automatically create JIRA issues using Ant. 回答1: Please check ant-jira. I never used it, looks like you can find some use and tell us how useful it is. 回答2: Use an Ant task to execute a shell command. Make the shell command the Atlassian CLI from Bob Swift. 来源: https://stackoverflow.com/questions/8531101/ant-tasks-for-jira

ant not executing .exe file

折月煮酒 提交于 2019-12-25 03:46:10
问题 my searchversion.exe file is not running in the script..why is that so? <project name="nightly_build" default="main" basedir="checkout"> <target name="init"> <property file="initial.properties"/> <property file="C:/Work/lastestbuild.properties"/> <tstamp> <format property="suffix" pattern="yyyyMMddHHmmss"/> </tstamp> </target> <target name="main" depends="init"> <sequential> <exec executable="C:/Work/Searchversion.exe"/> ... </sequential> </target> </project> Searchversion.exe will generate

Axis2 with complexTypes in Groovy

萝らか妹 提交于 2019-12-25 03:25:07
问题 So I'm having a couple of ANT scripts using Groovy to process complex calculations normal ANT can't do (at least afaik). I'm trying to access an Axis2 web service using a SOAP-envelope via Groovy. The request and response is pretty simple, except for two complexType attributes (one in the request, one in the response). The first thing I've stumbled across was Groovy Soap . It is quite easy to use, you simply instantiate a SoapClient and call the web service method. Unfortunately it cannot

Some clarification about how ant copy some files into a folder?

橙三吉。 提交于 2019-12-25 03:18:52
问题 I am pretty new to ant (I came from Maven and Ant is a nightmare for me !!!) I have this target: <target name="linuxdriver" description="Linux Driver"> <copy file="${deps.linuxdriver.dir}/${deps.linuxdriver.name}" tofile="${project.datadir}/${deps.linuxdriver.name}"/> <copy file="${deps.linuxdriver.dir}/${deps.linuxdriver.name}" tofile="${project.deploy}/data/${deps.linuxdriver.name}"/> <chmod perm="+x" file="${project.datadir}/${deps.linuxdriver.name}"/> <chmod perm="+x" file="${project