ant

Ant task that processes multiple files

拈花ヽ惹草 提交于 2019-12-24 11:00:48
问题 in Ant I want to execute a Java task on a fileset. I use the Java task to run rhino which runs a JS beautifier. The later works without any problems, except that it might seem little bit awkward to use rhino+js to acutally have a working JS beautifier/indenter. But all working JS beautifiers I have found are all written in JavaScript. I also want to run jsmin on the files as well, but as part of the distribution task. So the same problem will appear again, e.g running a java task on multiple

ant build android project tools/ant/build.xml:785 null returned: 139

一世执手 提交于 2019-12-24 10:55:38
问题 I use ant update an android project to target android-8 then use ant to build the project,but I got the error: BUILD FAILED /home/fengzhiping/android-sdk-linux/tools/ant/build.xml:769: The following error occurred while executing this line: /home/fengzhiping/android-sdk-linux/tools/ant/build.xml:785: null returned: 139 Why ant build failure?Anyone can help me? I use ubuntu11.04 and the android tools version is Android SDK Tools Revision 15. 来源: https://stackoverflow.com/questions/11661681/ant

ant: copy file from remote location on windows

岁酱吖の 提交于 2019-12-24 10:24:22
问题 I want to copy a file present in a shared location to windows machine. Is there some way by which i can specify username and password while copying the file? If i try to access using copy task, it is giving error saying location does not exist. is it because of permission? <copy todir="C:/localdir"> <fileset dir="\\\remotemachinename\dirname"> </fileset> </copy> 回答1: I think you may have the address wrong. I just tried the following tests successfully(2 slashes): dir="\\remotemachinename

H2 database org.h2.Driver ClassNotFoundException

廉价感情. 提交于 2019-12-24 10:05:55
问题 I try to run JUNIT test with eclipse and ANT they both are complainen that org.h2.Driver class is not found. I have h2-1.3.164.jar in my classpath and for proof about it here is classpath from system property java.class.path c:\trasferer\build; C:\Program Files (x86)\IBM\IMShared\plugins\org.junit4_4.3.1\junit.jar; c:\trasferer\lib\ojdbc6.jar; c:\trasferer\lib\sqljdbc4.jar; c:\trasferer\lib-test\h2-1.3.164.jar; c:\trasferer\lib-test\junit-4.8.2.jar; c:\trasferer\lib-test\log4j-1.2.14.jar; c:

How to convert JAR FILE to COD file using Ant Build

坚强是说给别人听的谎言 提交于 2019-12-24 09:58:29
问题 I have a JAR File,i want to know how to convert the JAR file to COD file. <target name = "build-MyLib" depends="clean"> <rapc destdir="release\5.0" output="Lib"> <src> <fileset dir="."> <include name="lib/Lib.jar" /> </fileset> </src> </rapc> </target> Error i got was [rapc] java.util.zip.ZipException: duplicate entry: Lib-1.cod [rapc] at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source) [rapc] at java.util.jar.JarOutputStream.putNextEntry(Unknown Source) [rapc] at sun.tools.jar.Main

[ANT]Property and Classpathref inherit broken in “foreach”

天大地大妈咪最大 提交于 2019-12-24 09:49:43
问题 To explain it briefly, here is an example: In build.xml, local-db.xml is imported. And in local-db.xml, there is a target named "warmup" which calls one target of the third file -- local-gr.xml using task. All the common properties and classpath defs are imported and set in build.xml. in project.properties: dest-dir=./destination in build.xml: <path id="gr-classpath"> ... </path> <import file="local-db.xml" /> in local-db.xml: <ant antfile="local-gr.xml" target="deploy" inheritAll="true"

Unit test fails only when running from with Ant task

痞子三分冷 提交于 2019-12-24 09:39:08
问题 I run the same tests from both eclipse and from an Ant task. When running from eclipse all tests pass. When I run Ant junit task, one, single test fails with the following strange error: junit.framework.AssertionFailedError at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.launching.remote.InternalAntRunner

How to configure Apache JMeter in eclipse?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 09:36:08
问题 I want to setup apache jmeter in eclipse.i downloaded source file and then add project into eclipse but then i get following error..i also downloaded binary files and i don't know where to add those files.but i didn't find any resources on the internet regarding this. java.lang.Throwable: Could not access F:\Users\NaTzI\JavaEE\lib at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99) java.lang.Throwable: Could not access F:\Users\NaTzI\JavaEE\lib\ext at org.apache.jmeter.NewDriver.

how to use the [ext] variable in ivy?

久未见 提交于 2019-12-24 09:16:45
问题 I want to use the url resolver to download depends. The depends are JS, or XML files. So, I used: <url name="urlresolver"> <artifact pattern="http://[organisation]/[module]-[revision].[ext]" /> </url> And <ivy:retrieve pattern="${build}/[module]-[revision].[ext]"/> the file is saved in .jar extension. 回答1: It's worth digging around the following ivy docs: Terminology Main Concepts Best Practices The first problem is that your url resolver is not configured to read ivy files for the remote

Empty Ant <junitreport> report for SoapUI testrunner XML results

一笑奈何 提交于 2019-12-24 09:16:32
问题 I am running a SoapUI project using Ant to get a JUnit report. Here is my build.xml: <project basedir="." default="testreport" name="APIAutomation"> <target name="SoapUI"> <exec dir="." executable="C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\testrunner.bat"> <arg line="-r -j -a -f 'C:\Users\F3020722\Desktop\Notification\New folder' -sFirstLoginTest 'C:\Users\F3020722\Desktop\Notification\New folder\APIRegression.xml'"></arg> </exec> </target> <target name="testreport" depends="SoapUI">