ant

Android: Is it possible to add folders to APK through commands

孤街醉人 提交于 2019-12-12 06:11:51
问题 I am having a android source and i am building that source and generate apk manually. Manually in the sense using ant release jarsigner and zipalign. I got the singed APK working. Now i am trying to add folders to the apk before signing it or It is possible to add it while the ant build process .Is this possible if so share me the commands.I saw aapt command is used to add files but not folders.. Thanks in Advance Regards, Deepak 来源: https://stackoverflow.com/questions/13835940/android-is-it

Is there any Ant feature, that copies classpath dependencies to WEB-INF/lib?

≡放荡痞女 提交于 2019-12-12 05:52:06
问题 I can't affect the procedure of copying classpath dependencies to WEB-INF/lib category: there is no special ANT task that copies those jars (at least, i cant find any 'copy' task with related "WEB-INF/lib" string as PATH argument), but they appeared after project building. How to affect this procedure? Basically, i need to exclude JAXB jars to avoid dependency conflict. At the same time i need this jars at compile-time, so i can't remove them. Maybe, it is easier to erase those jars manually,

How to build artifacts from IntelliJ via command line

。_饼干妹妹 提交于 2019-12-12 05:38:47
问题 I am looking to make my development life a little easier. Currently I have to go through multiple steps to deploy my code base to a test environment to allow for QA to do their work. These steps are not difficult just that I want to automate it so that it can auto run twice a day. One thing that I am having trouble figuring out what to do is to automate my build artifacts phase in IntelliJ. I have two modules in my IntelliJ projects and I build artifacts for one of them. The steps I go to

JAVA(TM) binary has stopped working while ant converts .jmx to .jtl

混江龙づ霸主 提交于 2019-12-12 05:07:30
问题 I'm trying to generate HTML reports of jmeter files using apache ant. while running the test .jmx file tries to convert itself into .jtl file, at that time java binary has not working pop appears and build fails. D:\softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras>ant -Dtest=RetailerPor tal Picked up _JAVA_OPTIONS: -Xmx256M Buildfile: D:\softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\build.xml run: [echo] funcMode = false [jmeter] Executing test plan: D:\softwares\apache-jmeter

Apache Ant - Hide/Secure Exec Task Arguments

那年仲夏 提交于 2019-12-12 05:04:28
问题 I want to execute Ant with the verbose option but I don't want the arguments passed into the Exec task to be displayed in situations where they are sensitive (i.e. user/password). An example is where there's a connection to a database: <exec executable="/bin/sh" failonerror="true"> <arg line="/opt/blah/blah/bin/frmcmp_batch.sh Module=blah Userid=username/mypassword@blah Module_Type=blah"/> </exec> I don't want the arguments (specifically "Userid=username/mypassword@blah" showing up in the log

How to delete all but latest 2 files using Ant

喜夏-厌秋 提交于 2019-12-12 04:56:45
问题 Using Ant, I have to delete all but the latest 2 files from a backup folder. I tried to negate last count="2" , but could not found the right Resources order. Currently I am doing this : <delete verbose="true"> <difference> <resources> <fileset dir="${backup}"/> </resources> <last count="2"> <sort> <date/> <resources> <fileset dir="${backup}"/> </resources> </sort> </last> </difference> </delete> Is there a simpler way? 回答1: This question has lead to an Ant enhancement request that has been

Unable to make ant script with swtjar

◇◆丶佛笑我妖孽 提交于 2019-12-12 04:54:32
问题 I am attempting to make a cross platform .jar of a program that uses SWT for its GUI. I stumbled upon this and this, and have tried to use it in my own program. I am not very experienced with ant scripts, and this program has a lot of other .jars in its build path, so I used eclipse to generate an ant build script, which I modified to include the swtjar task. However, when the script runs and gets to the swtjar task, it fails and says that The archive swtjar.jar doesn't exist . I also tried

Error in classpath generation from default-template ant

无人久伴 提交于 2019-12-12 04:47:21
问题 I am trying to use the default-template in my Java project to generate the launch script, based on the ivy dependencies specified in my project. The issue I am facing is that the ivy dependencies are getting picked up and put in the classpath but the main project jar is not getting included in the classpath.(Which gives a class not found exception while trying to run the script) On further investigation and comparison with other scripts I found that there is a line as. export RUNTIME

How to get any useful information when JDeb fails to create a Debian package?

你离开我真会死。 提交于 2019-12-12 04:37:01
问题 I use JDeb for a few days. I try to create a Debian package for my Java based first person shooter. I use Ant as a build tool. I put this line into my Ant script at the very beginning: <taskdef name="pure-java-deb" classname="org.vafer.jdeb.ant.DebAntTask" classpath="lib/ant/jdeb-1.3.jar"/> I try to use this library further: <delete failonerror="false" file="${destdir}/control" /> <echo file="${destdir}/control"> <![CDATA[ Package: ${project-unix-name} Version: 0 Section: Games Priority: low

libGDX - gdx-backend-jglfw is missing and some others

折月煮酒 提交于 2019-12-12 04:36:58
问题 I am new to libGDX and trying to compile the source, I have eclipse Luna 4.4.1 jdk1.8.0_11 installed, and JAVA_HOME is set jre8 ant version 1.9.3 // executed ant -f fetch.xml in libGDX filder clean all projects but as I have touched nothing in the project there are 25 errors, it is my first JAVA-libGDX attempt and dying here... Description Resource Path Location Type Project 'gdx-backend-jglfw' is missing required library: '/gdx/libs/gdx-natives.jar' gdx-backend-jglfw Build path Build Path