ant

ANT checkout task fails

人走茶凉 提交于 2019-12-11 13:41:48
问题 I've got the following markup: <?xml version="1.0" ?> <project name="SampleBuild" default="compile" basedir="."> <property name="SvnAntDir" value="C:/Program Files/Apache/svnant-1.2.1/doc" /> <property name="src" value="_src_" /> <property name="build" value="_build_"/> <property name="dist" value="${build}/_jars_" /> <path id= "svnant.classpath" > <fileset dir= "${SvnAntDir}" > <include name= "*.jar" /> </fileset> </path> <target name="pre-cleanup"> <delete dir="${src}" /> <delete file="$

Is there is a way to check Ant Target condition before target dependencies get executed

巧了我就是萌 提交于 2019-12-11 13:17:32
问题 I am trying to avoid antcall in my program, so trying to move antcall targets to target dependencies. Now I have a situation: <target name="test" depends="a,b,c" /> <target name="a" depends="a1,a2,a3" /> <target name="b" depends="b1,b2,b3" /> <target name="c" depends="c1,c2,c3" /> Till now every thing work fine. But if i just want to skip target 'c' and its dependencies from execution, <target name="c" depends="c1,c2,c3" if="skip.c" /> (considering the property "skip.c" is already set) Now

Cordova: ant error code 1 when building android hello world app

拟墨画扇 提交于 2019-12-11 13:05:57
问题 Clean install of Cordova on an Ubuntu 12.04, then installed Android ADT bundle and added the platform-tools and tools to the path. Then created the hello app from toturial at apache Cordova. but it refuses to build. See the error I'm getting: aus@devhost:/opt/android_app/hello$ cordova build Running command: /opt/android_app/hello/platforms/android/cordova/build Buildfile: /opt/android_app/hello/platforms/android/build.xml -set-mode-check: -set-debug-files: -check-env: [checkenv] Android SDK

“unknown option: --output” after updating Android SDK from revision 12 to revision 13

笑着哭i 提交于 2019-12-11 12:48:04
问题 I've just updated my android development tools to revision 13. This all went smoothly and I can continue to build in eclipse as usual. However once I try to de a release build with ant my build fails with the message "unknown option: --output". Further Info: I'm running 32bit Eclipse / Java on 64 bit windows. The issue occurs only when running a build from the command line and the build worked before I updated the sdk from revision 12 to 13. Here is the relevant output from "ant release"

How to display the classpath build in an Ant Junit task

安稳与你 提交于 2019-12-11 12:34:16
问题 An Ant junit task that has worked for months is suddenly failing with a NoClassDefFoundError for classes that used to be found. Is there a way to display the classpath that is built in the junit task? <target name="basic-junit-test" description="Run a single JUnit test. "> <junit printsummary="yes" fork="no" haltonfailure="yes"> <classpath> <pathelement location="target/WEB-INF/lib/log4j-1.2.16.jar"/> . . many other pathelements . </classpath> <test name="com.mycompany.command

Dynamically updating Ivy extra attributes

旧巷老猫 提交于 2019-12-11 12:12:24
问题 I plan on using extra attributes in the ivy.xml files in an attempt to be able to get access to the revision number parts, which I need to do so that I can then use those values for the resolver pattern in the ivysettings.xml file: <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:e="http://ant.apache.org/ivy/extra" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"> <info organisation="MyCompany" module="MyModule" revision="1.2.3.4"

taskdef java.lang.VerifyError: Bad type on operand stack when TEAM CITY executes build

拟墨画扇 提交于 2019-12-11 12:12:19
问题 I have a build.xml that compiles and tests some scala code. Running the ant task from the command line produces the desired result, however when TeamCity runs it, all sorts of weirdness happens, including the following: Checking for changes [15:35:02]Publishing internal artifacts [15:35:02]Clearing temporary directory: /opt/TeamCity/buildAgent/temp/buildTmp [15:35:02]Checkout directory: /opt/TeamCity/buildAgent/work/d80416000445458a [15:35:02]Updating sources: server side checkout [15:35:03

Execute Ant in “Validation” mode

夙愿已清 提交于 2019-12-11 11:58:25
问题 Is it possible to execute Apache Ant build tool in a validation ode? e.g to process a build.xml file and expand all the ${} variables etc but not actually build the target java projects? i just need the completed xml build file with all the substitutions completed so that i can see the exact locations of source and jar files etc. so that entries like "value="${aaa.bbb.cc}/Impl.jar"/>" are expanded to "value="AnApplication/lib/Impl.jar"/>" 回答1: use a checktarget that does some echoing instead

ClassLoader exception when running ant on windows with java 1.8

旧城冷巷雨未停 提交于 2019-12-11 11:55:54
问题 I ran into this issue when running ant on a windows system with java 1.8.60. This was working fine when running java 1.7.25. Even more interesting : it runs fine when executed on a mac? I am kind of lost since there is not much pointing me towards a cause of this problem. Error occurred during initialization of VM java.lang.ExceptionInInitializerError at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1448) at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1433)

Migrating from ant + ivy to gradle

孤人 提交于 2019-12-11 11:54:10
问题 I read many good things about gradle so I get impressed. Many people are enthusiastic how easy is to develop with gradle. They all emphasize the multi-project capabilies of gradle. I already have a main project with some subprojects. The outside dependencies are defined in all the project's own ivy.xml. And the module interdependencies are defined in both eclipse's .classpath file and ant build.xml parallelly. This way i can build for IDE and can create a runtime with ant. Is there a simple