ant

referencing ant script location from within ant file

北战南征 提交于 2019-12-18 03:33:50
问题 I have a utility build script that gets called from a variety of project-specific build scripts on a build server. Everything works fine, until the relative directory structure changes. That is: trunk/ utilities/ imported.xml some_resource_file projectName/ importing.xml works just fine, but sometimes we need: trunk/ importing.xml utilities/ imported.xml some_resource_file projectName/ The problem is that imported.xml needs some_resource_file and currently gets to it by referring to ..

Output several timestamps in ant

て烟熏妆下的殇ゞ 提交于 2019-12-18 03:12:36
问题 The Ant buildfile snippet below is an attempt to simply output the time before and after each sql script is run. I cannot change the structure of the Ant targets (create-tables must call run-sql-script just as it does). The problem is that the properties (time and time2) are immutable (http://ant.apache.org/manual/Tasks/property.html) and thus only time the first operation and not the second. Is there no way to do what I'm trying to do in Ant? <target name="create-tables"> <antcall target=

Output several timestamps in ant

心已入冬 提交于 2019-12-18 03:11:14
问题 The Ant buildfile snippet below is an attempt to simply output the time before and after each sql script is run. I cannot change the structure of the Ant targets (create-tables must call run-sql-script just as it does). The problem is that the properties (time and time2) are immutable (http://ant.apache.org/manual/Tasks/property.html) and thus only time the first operation and not the second. Is there no way to do what I'm trying to do in Ant? <target name="create-tables"> <antcall target=

How to automatically create batch / shell scripts to run a Java console application?

萝らか妹 提交于 2019-12-18 02:48:24
问题 I have a Java command-line application, and would like to create an Ant* build script that will create all the required batch/shell scripts to run the application successfully including all the classpath variables. I need it to do the following: Create a shell script file for Linux/Unix and a batch file for Windows/DOS Add all classpath dependencies (from Maven or simply use the build path in Eclipse) Add any necessary boilerplate sh/bat code to run (ENV variables, JAVA_HOME, etc.) I found

Cordova Android project doesn't compile

柔情痞子 提交于 2019-12-18 02:47:55
问题 Cordova version: 4.3.0 java version "1.8.0_40" 64bit OS X 10.10.2 Ant version: 1.9.4 Target android SDK I'm using is 19. When I run 'ant release' in the platforms/android/CordovaLib folder I get the following output with error: Buildfile: .../platforms/android/CordovaLib/build.xml -set-mode-check: -set-release-mode: -release-obfuscation-check: [echo] proguard.config is ${proguard.config} -pre-build: -check-env: [checkenv] Android SDK Tools Revision 24.1.2 [checkenv] Installed at /Users/...

Cordova Android project doesn't compile

旧时模样 提交于 2019-12-18 02:47:39
问题 Cordova version: 4.3.0 java version "1.8.0_40" 64bit OS X 10.10.2 Ant version: 1.9.4 Target android SDK I'm using is 19. When I run 'ant release' in the platforms/android/CordovaLib folder I get the following output with error: Buildfile: .../platforms/android/CordovaLib/build.xml -set-mode-check: -set-release-mode: -release-obfuscation-check: [echo] proguard.config is ${proguard.config} -pre-build: -check-env: [checkenv] Android SDK Tools Revision 24.1.2 [checkenv] Installed at /Users/...

How to automatically create batch / shell scripts to run a Java console application?

瘦欲@ 提交于 2019-12-18 02:47:01
问题 I have a Java command-line application, and would like to create an Ant* build script that will create all the required batch/shell scripts to run the application successfully including all the classpath variables. I need it to do the following: Create a shell script file for Linux/Unix and a batch file for Windows/DOS Add all classpath dependencies (from Maven or simply use the build path in Eclipse) Add any necessary boilerplate sh/bat code to run (ENV variables, JAVA_HOME, etc.) I found

Error on adding platform in ionic framework on windows

为君一笑 提交于 2019-12-18 02:38:46
问题 I get the following error while adding android platform... I had checked my ant -version and it outputted it correctly. Also i noticed when it created myApp folder node_modules weren't fetched with it. beneath is output from my console Adding platform android Creating android project... C:\Users\user\.cordova\lib\android\cordova\3.5.0\bin\node_modules\q\q.js:126 throw e; ^ Error: An error occurred while listing Android targets at C:\Users\user\.cordova\lib\android\cordova\3.5.0\bin\lib\check

ExceptionWithContext gets thrown when trying to build an Android app with Ant

删除回忆录丶 提交于 2019-12-18 01:59:09
问题 I've tried searching around both on Google and on stackoverflow for an answer to this, but I've been unable to find anyone with the exact issue I'm having. I'm attempting to set up a continuous integration server (Bamboo, specifically) to update, build, and export an APK every time someone makes a change in source control. I'm running into the same error both on my local machine when I do every step by hand and on the server when I use the job I've set up. The error happens when I reach the

Use pure Ant to implement if else condition (check command line input)

筅森魡賤 提交于 2019-12-17 23:48:33
问题 I am a newbie in Ant. My ant script receives a user input variable named " env " from command line: e.g. ant doIt -Denv=test The user input value could be " test "," dev " or " prod ". I also have the " doIt " target: <target name="doIt"> //What to do here? </target> In my target, I would like to create the following if else condition for my ant script: if(env == "test") echo "test" else if(env == "prod") echo "prod" else if(env == "dev") echo "dev" else echo "You have to input env" That's to