ant

jenkins unable to run “ /build-tools/17.0.0/aapt ”

我是研究僧i 提交于 2019-12-24 16:01:04
问题 does anyone know why is jenkins unable to run this file and gives a no such file or directory error ? the file is there. it has the following permissions : root@ott-ci-01:/usr/local/lib/android-sdk-linux/build-tools/17.0.0# ls -la /usr/local/lib/android-sdk-linux/build-tools/17.0.0/aapt -rwxr-xr-x 1 root root 1122758 Jun 17 10:07 /usr/local/lib/android-sdk-linux/build-tools/17.0.0/aapt any ideas ? 来源: https://stackoverflow.com/questions/17156569/jenkins-unable-to-run-build-tools-17-0-0-aapt

Other Ivy Tokens Available?

偶尔善良 提交于 2019-12-24 15:13:44
问题 Is there a way when designating a resolver ivy pattern to be able to produce the following output? C:/MyRepository/MyCompany/MyModule/1.2.3/4/ivy.xml Currently, the [revision] token resolves to the full 4-digit version number. I'd like to be able to use the first three digits of the revision for a part of the pattern and use the last digit for a subfolder below that. Is this possible or would I have to write custom ant code to do this? Something like this: <resolvers> <filesystem name=

Eclipse e4 export - build.xml: A problem occurred while executing this line:

我怕爱的太早我们不能终老 提交于 2019-12-24 13:38:24
问题 I've recently changed my Eclipse e4 applications project configuration from being based on plug-ins to features. The application runs correctly but when exporting I get errors to do with a build.xml file. Error .metadata/.log - Shortened C:\Users\my.name\Workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\compile.org.eclipse.pde.container.feature.xml:6: The following error occurred while executing this line: C:\Users\my.name\Workspace\project_name\build

Ant can't find an ant class (DateUtils) while building

五迷三道 提交于 2019-12-24 13:03:42
问题 I'm trying to get a project to build via ant. It builds just fine via ant on my local machine, but on our build machine I get : java.lang.NoClassDefFoundError: org/apache/tools/ant/util/DateUtils at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:323) at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:170) at org.apache.tools.ant.Project.fireBuildFinished(Project.java: at org.apache.tools.ant.Main.runBuild(Main.java:778) at org.apache.tools.ant.Main

Ant can't find an ant class (DateUtils) while building

拥有回忆 提交于 2019-12-24 12:55:09
问题 I'm trying to get a project to build via ant. It builds just fine via ant on my local machine, but on our build machine I get : java.lang.NoClassDefFoundError: org/apache/tools/ant/util/DateUtils at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:323) at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:170) at org.apache.tools.ant.Project.fireBuildFinished(Project.java: at org.apache.tools.ant.Main.runBuild(Main.java:778) at org.apache.tools.ant.Main

Functionalizing few lines of code with ant macrodef

≯℡__Kan透↙ 提交于 2019-12-24 12:51:29
问题 I am trying to "function"alize few lines of ant-code using macrodef . But its resulting in error like : copy doesn't support the nested "my-macro" element. If I "inline" definition of my-macro of adding filterchian within copy-task it works. My test target looks like this - <target name="copy-files"> <sequential> <copy todir="abc" > <fileset dir="xyz"> <!--needy includes/excludes --> </fileset> <my-macro/> </copy> </sequential> </target> And my-macro looks like this: <macrodef name="my-macro"

Unable to run JAR through command line or double click

喜欢而已 提交于 2019-12-24 12:41:33
问题 I was following Ant tutorial and wrote a simple program for log4j.But when I am trying to run the JAR by command line I am unable to do so. Now I am unable to even guess what is the problem. No error is coming up when running JAR via the command line but log file is not updating Log file is updated when app ran in JDeveloper Log file is updated when JAR is ran via Ant script I have already added log4j.properties inside the JAR I have added classpath in commandline About the JAR

Run UNIX command in ant script - build.xml

徘徊边缘 提交于 2019-12-24 12:14:20
问题 How to put this unix command in ant script? jar -xvf test.ear out.war | jar -x ; cd directory ; jar -xvf ../out.war Will this work? <target name="unear"> <echo>***Un-tarring***</echo> <exec executable="jar" outputproperty="noOfFiles"> <arg value="-xvf" /> <arg value="test.ear out.war" /> <arg value="|" /> <arg value="jar" /> <arg value="-x" /> <arg value=";" /> <arg value="cd directory" /> <arg value=";" /> <arg value="jar" /> <arg value="-xvf" /> <arg value="../out.war" /> </exec> </target>

Run Ant files when performing Build and Deploy Worklight 5.x.x Application

橙三吉。 提交于 2019-12-24 12:11:43
问题 I have a Worklight application set up in Eclipse. Before executing Build And Deploy Worklight Application , I need to run a bat that compiles a bunch of HTML templates. This templates are necessary to run the app correctly. So, I would like to know if it is possible to link (maybe under Run Configurations... ?) an Ant file or similar that allows me to execute the bat and perform the build & deploy in an automatic way. Any advice? Hope the question is clear. 回答1: I believe you can add an extra

Build.xml is failing to send email, gives “java.lang.ClassNotFoundException: javax.mail.internet.MimeMessage” error

此生再无相见时 提交于 2019-12-24 12:05:07
问题 Below is one of the targets that runs after the completion of tests, buil.xml(pass or fail). This target is failing and giving error "java.lang.ClassNotFoundException: javax.mail.internet.MimeMessage". So I expanded the mail.1.4.jar file and saw this class was there. So next I checked that this jar was there in my setclasspath target or not, and it was there. Third thing I checked that mail.1.4.jar was included in ant's path or not and it was there. Now I am not able to understand why I am