ant

Is there a way in ANT to extract one class file from a JAR and put it in another JAR?

拈花ヽ惹草 提交于 2019-12-11 01:34:50
问题 My ANT build script uses a WebSphere command called createEJBStubs that produces a JAR file with everything plus one new generated class, namely: com/myapp/services/_User_Service_Stub.class . Since this stub class is only used for running JUnit tests at dev time, I would like it to be in its own JAR file. How can I tell ANT to copy everything in AAA.JAR that matches, say, _*Stub.class and copy only those files into BBB.JAR (also, maintaining the same directory/package structure)? Any ideas or

Jenkins unable to invoke ANT in MAC Slave

浪子不回头ぞ 提交于 2019-12-11 01:28:25
问题 Jenkins master is running on Windows. I have connected a MAC as jenkins slave using java webstart. I have installed ANT in the slave (MAC) and updated PATH accordingly. I am able to run ant programs locally in the slave machine. When i run the job from jenkins, It is not invoking ant and fails with below error. Please clarify. Building remotely on QAXXX in workspace /Users/uselvvi/jenkins/workspace/QG_LOCALIZATION_STAGING Cleaning up /Users/uselvvi/jenkins/workspace/QG_LOCALIZATION_STAGING/.

Can I conditionally stop an Ant script based on file last modified time?

回眸只為那壹抹淺笑 提交于 2019-12-11 01:22:52
问题 I've been looking all over the Internet, but couldn't find an answer anywhere. I have an MQFTE job coded in ANT script and I'm having difficulty with a process that moves files if a file doesn't have today's date. What I would like to do is a conditional stop, something like a return true value in a middle of the execution so the job is not going to go through the further routine and just end if the file is identified as to be skipped. Is that possible in ANT? Or does it have to go through

Ant Ivy: Producing text report of the runtime jars

北慕城南 提交于 2019-12-11 01:08:48
问题 Normally, when we download jars from Ivy, we set pattern to include the version number of the jar. <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact]-[revision].[ext]" log="${ivy.log}"/> However, for this one project, we can't do that. Jars have to be downloaded without version ID on them: <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"/> This app is installed by overwriting what is already there. If a revision of a particular jar gets changed from one release to the next, we

Can i save comment info in my Jar file(generated by Ant)?

試著忘記壹切 提交于 2019-12-11 01:03:26
问题 When I build my project to a Jar file with Ant, I generate javadoc the same time. But when I use this Jar in a new Project, I can't see the Jar's comment in the Eclipse(pressing F2). So I tried to add the javadoc files' location path in 'javadoc Location' of Properties of my new Project,it doesn't work, even if Eclipse tell me the 'Location is likely valid'. When I open it in Browser,the Url is like file:///file:/C:/Users/topxebec/Desktop/doc/index.html , there's two prefix in the url,but in

Do you use ant's <depend> task?

喜欢而已 提交于 2019-12-11 00:45:50
问题 The documentation for ant's task states: The performance of the depend task is dependent on a number of factors such as class relationship complexity and how many class files are out of date. The decision about whether it is cheaper to just recompile all classes or to use the depend task will depend on the size of your project and how interrelated your classes are. I suspect that using the task before calling may speed up the build for the project I work on, and possibly prevent the need for

ant copy copying order

柔情痞子 提交于 2019-12-11 00:35:34
问题 I am new to ant and i want to know how the ant copy decides the copying order. Problem is, I have a folder structure like this releases/v1,v2,v3 . folders will be created for each new release. and names of the files will be similar in these folders. and it is required to copy the latest release in to a folder called 'latest' in this scenario it will be required to copy v3 into 'latest'. so my logic is to copy one by one into 'latest' folder and override the files and the latest file will be

ANT seems to be corrupting chinese character when deploying project

て烟熏妆下的殇ゞ 提交于 2019-12-11 00:06:07
问题 I have an XSL file which contains the following text: <xsl:variable name="orderName" select="'@ORDER_NAME@'"/> At the top of the XSL file the encoding is set to UTF-8 <?xml version="1.0" encoding="UTF-8"?> And if I check the file properties in Eclipse, the Text file encoding is listed as: Default (determined from content type: UTF-8) There is then an ANT filter set file: <project name="filterset" basedir="."> <property name="conn" value="TEST"/> <filterset id="conn_props"> <filter token=

componentdef error with ant

会有一股神秘感。 提交于 2019-12-10 23:32:14
问题 I have an relatively old Grails app that uses ant to build the application. In the test server it build without any problems, but when I try to run it on my PC, I get a consistent error: Caused by: jar:file:/C:/ant/apache-ant-1.8.0/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type componentdef 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

Difficulties with updating my Mac to the latest Java JDK

只谈情不闲聊 提交于 2019-12-10 23:17:33
问题 [2015-10-12 12:51] Running... little-mbook1:platform mlittle$ ant clean all Error: JAVA_HOME is not defined correctly. We cannot execute /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home//bin/java And running... mlittle-mbook1:bin mlittle$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home I set java_home to: JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home I have just noticed that Apache Ant is looking in the wrong path,