ant

Android Command Line Tool - Ant Debug in project with libraries

梦想与她 提交于 2019-12-24 06:05:18
问题 I created a test project to understand how to build and run the tests using command line tool. I managed to create a project, updated it with android update project -p . and debug with ant debug When I added a library project to this test project, the ant debug started to fail because it couldn't find the build.xml of the library. The only solution I found atm is to update the library project as well (found here). Is this the correct way? I see pom.xml files in many of the libraries that I

What to do when your ant build process craps on your Version Control

断了今生、忘了曾经 提交于 2019-12-24 05:48:46
问题 So I've got a nice Java project, build with Ant to a /dist folder. The whole project is under version control, so I can deploy the latest version just by 'svn export' on the path to the dist folder. But my build keeps deleting the .svn folders inside my dist folder, and all its dependents, because it cleans out the folder when building instead of just overwriting. The precise culprit is JarBundler, the Ant task that builds my mac.app bundle - It deletes the whole bundle's folder before

How to run multiple commands from ant exec task

青春壹個敷衍的年華 提交于 2019-12-24 05:44:44
问题 I want to run two dos commands from Ant exec task. I have tried below code <exec dir="${testworkspace}\${moduleName}" executable="cmd" failonerror="true" output="${testworkspace}\${moduleName}\BuildConsole_TC${tc_num}.log" resultproperty="execrc"> <arg value="/c echo Download Status is ${DownloadStatus}"/> <arg value="/c Load.bat ${moduleName} ${Intapp} ${CcvStatus}"/> </exec> but it executes only first command and skips second. I am trying this on windows OS. 回答1: This should work. Simply

How to run multiple commands from ant exec task

南楼画角 提交于 2019-12-24 05:44:08
问题 I want to run two dos commands from Ant exec task. I have tried below code <exec dir="${testworkspace}\${moduleName}" executable="cmd" failonerror="true" output="${testworkspace}\${moduleName}\BuildConsole_TC${tc_num}.log" resultproperty="execrc"> <arg value="/c echo Download Status is ${DownloadStatus}"/> <arg value="/c Load.bat ${moduleName} ${Intapp} ${CcvStatus}"/> </exec> but it executes only first command and skips second. I am trying this on windows OS. 回答1: This should work. Simply

Hudson dependencies

十年热恋 提交于 2019-12-24 05:40:10
问题 I have set up my hudson job A. Job A depends on job B and C. I have set them up with "Build other projects". This works well, although each job is in separate directory in my workspace (default structure). But I need job B and C in jobs A workspace (root folder). I have considered two approaches: Change the workspace for job A and push that variable to job via "Trigger parameterized build on other projects" and then use ant build script to copy them to that location, since I couldnt find an

How to make custom ant task?

浪子不回头ぞ 提交于 2019-12-24 05:07:05
问题 I am learning a new upcoming language known as Visage. This language is almost the same as the Open Source JavaFX 1.3 . My problem is that Visage has its own compiler and to compile a visage file I need to use 'visagec filename.visage' and the run the class file generated I need to use 'visage filename'. I want this task to be automated using the ant script. I also need to include some jar files in the classpath while doing so. Can someone please let me know how to write a custom ant script

Android Ant Error: resolve to a path with no project.properties file for project

*爱你&永不变心* 提交于 2019-12-24 04:51:57
问题 I do this in an Ant Script. I link a library Project, update them and build them. But I keep getting this error in the headline. Anyone knows how to fix this? <target name="updateProject"> <echo>updating Project...</echo> <exec dir="${scannerLibrary_home}" executable="ant"> <arg line="project"/> <arg line="update"/> <arg line="--path"/> <arg line="."/> </exec> <exec dir="${projectroot}" executable="ant"> <arg line="project"/> <arg line="update"/> <arg line="--path"/> <arg line="."/> </exec>

I am getting a java.lang.NoClassDefFoundError when the class is clearly there

筅森魡賤 提交于 2019-12-24 04:11:17
问题 I am getting the following error when I am trying to use the library during runtime: java.lang.NoClassDefFoundError: com.google.api.client.extensions.android2.AndroidHttp I have added this library to my project, it is the first jar of the Maven dependencies( I am not 100% used to Maven though). Also,My understanding is that Ant is looking for the jars in a libs folder, but Maven is using its own folder, and that works fine for an other project. So I am lost..any clues/help on how should I

I am getting a java.lang.NoClassDefFoundError when the class is clearly there

浪尽此生 提交于 2019-12-24 04:11:09
问题 I am getting the following error when I am trying to use the library during runtime: java.lang.NoClassDefFoundError: com.google.api.client.extensions.android2.AndroidHttp I have added this library to my project, it is the first jar of the Maven dependencies( I am not 100% used to Maven though). Also,My understanding is that Ant is looking for the jars in a libs folder, but Maven is using its own folder, and that works fine for an other project. So I am lost..any clues/help on how should I

How to build an executable jar file with Ant

筅森魡賤 提交于 2019-12-24 04:09:25
问题 I'm developing Swing based application in Java I want a executable JAR file for this project. All external library files used in the project should be packaged in the JAR file. How can I build a runnable JAR file using ANT? 回答1: but it needs all external library files used in the project should be along with the jar. Of course, but the external JARS should not be bundled in with the executable JAR. You need to do three things: Create a manifest for your executable JAR that specifies the Main