ant

Reasons for using Ant Properties files over “Properties Tasks”

纵饮孤独 提交于 2020-01-01 05:48:07
问题 I'm currently working with some developers who like to set up Ant tasks that define environment specific variables rather than using properties files. It seems they prefer to do this because it's easier to type: ant <environment task> dist Than it is to type: ant -propertyfile <environment property file> dist So for example: <project name="whatever" default="dist"> <target name="local"> <property name="webXml" value="WebContent/WEB-INF/web-local.xml"/> </target> <target name="remote">

How to create apk file in command line?

时光怂恿深爱的人放手 提交于 2020-01-01 05:23:10
问题 I was using eclipse ide to build apk file . Now i want to create apk file in command line in linux. But when i say ant debug it gives following error : Unable to obtain resource from anttasks.jar java.util.zip.ZipException : error in opening zip file Problem : failed to create task or type checkenv Cause : The name is undefined Action : Check the spelling Action : Check that any custom tasks/types have been declared Action : Check that any <presetdef>/<macrodef> declarations have taken place

Junit ant task - JUnitTask was not found

徘徊边缘 提交于 2020-01-01 05:02:29
问题 I'm trying to run Junit test from my ant build.xml file. I read here that you can use a junit.jar file instead of using the .jar that is located in the ant.home/lib directory. This is what I want to do since our Jenkins autobuild set-up has no junit.jar file in his ant lib directory. Even with the simpliest project, I'm always getting this error that the JUnitTask was not found. If you look at my build.xml file, it is clearly included and used in the junit task. build.xml : <project default=

Failed to launch JavaFX application with native bundle exe

人走茶凉 提交于 2020-01-01 05:00:06
问题 I have created a JavaFX application, and created its native bundle using Ant . When I am trying to launch application using Jar from bundle created with double click, it successfully launching my application. But when I am trying double click on MyApplication.exe (say), it throwing JavaFX Launcher Error "Exception while running Application" . I have compared both jre, there are many missing jar, exe, dll and some properties files I found. I have these environment settings - JAVA_HOME -- C:

Understanding the Eclipse classpath declarations

帅比萌擦擦* 提交于 2020-01-01 02:34:36
问题 I'm trying to understand the Eclipse classpath file, in particular, I want to know this: How is the JRE using it (i.e. is the JVM reading this xml file directly, or is eclipse somehow feeding it into its internal compiler)? How are the complex entries (like the ivy path below) parsed and incorporated into the JVM ClassLoader when I run my classes from my IDE? Context: I have a strange bug which is that eclipse is using the "wrong" version of a class, whereas my ivy / ant build is using the

Manage code/build for Android app stores (Google/Amazon/etc)?

自作多情 提交于 2019-12-31 12:20:13
问题 I have an Android app that's downloaded primarily from Android Market (now, Google Play). We made a few tweaks to the source and also submitted to the Amazon App Store to see what sort of traction it gets. I'm now looking for a sustainable way to develop from a common code base and yet build so that I can submit to either/both. Amazon's store has some restrictions about available APIs, and hence I'd like to conditionally remove/modify features from that version. Since Java doesn't support

EMMA with Junit, should I be testing with the instrumented classes or java classes?

帅比萌擦擦* 提交于 2019-12-31 07:14:07
问题 I've been going through this tutorial for my ANT Script for emma/junit, it states In the <classpath> element of <junit> , change the locations of your real classes, so that you are pointing at the ${instr.dir} attribute instead of your normal target/classes folder. Here is my emma section from of my build.xml for Apache Ant (pastebin link to full build.xml) <!-- =================================================================== --> <!-- Run the tests with EMMA * depends from compile --> <!--

ant/Jenkins: move doesn't support the “quiet” attribute

走远了吗. 提交于 2019-12-31 06:36:25
问题 My build script executes: <move todir="gen" overwrite="true" quiet="true"> <fileset dir="gen"> <include name="**/BuildConfig.java.new"/> </fileset> <globmapper from="*.java.new" to="*.java"/> </move> I get the error: move doesn't support the "quiet" attribute I have ant 1.8.4 installed on my iMac. My ant plugin in Jenkins is 1.2. Jenkins ver. 1.505. I have tried to change the PATH when starting Jenkins, so it includes my command line ant. However it seems that Jenkins does not support ant 1.8

schedule ant task

萝らか妹 提交于 2019-12-31 06:28:08
问题 Is it possible "and how if you know", to schedule the execution of an ant task? For example, i want my build.xml to be executed every 5 hours or every day at a certain time? I have been looking around but no solution found Thank you 回答1: For very simple requirements, I'd echo the use of cron. If the reason for running ANT is to periodically perform a master build of your project's code, then you're effectively following a practice called "Continuous Integration". In that case I'd highly

Apache Ant gets frozen while running this script

我的未来我决定 提交于 2019-12-31 06:27:40
问题 I want to show a password input dialog from ant script. Here's my code from build.xml : <target name="sign" unless="isUpToDate"> <script language="javascript"> importClass(javax.swing.JPasswordField); importClass(javax.swing.JOptionPane); var pf = new JPasswordField(); var okCxl = JOptionPane.showConfirmDialog(null, pf, "Enter Password", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (okCxl == JOptionPane.OK_OPTION) { project.setNewProperty("keypass", pf.getPassword()); } else {