ant

Jenkins - Using the results of one job, in another job

扶醉桌前 提交于 2019-12-08 19:00:26
问题 I have a job that runs a makefile and generates some files. I then want another job that publishes these files to ivy. I am aware of the clone workspace plugin, but is there any other options? 回答1: You run a Makefile , and you're publishing to Ivy ? Ivy is part of Ant, and is a module that takes advantage of the worldwide Maven repository structure to grab required jarfiles and other dependencies. Don't get me wrong, I've used a local remote Maven repository to publish C/C++ libraries (you

Ant JUnit ClassNotFoundException

こ雲淡風輕ζ 提交于 2019-12-08 18:49:23
问题 I realize there are a lot of similar questions as this one, however after reading over most of them I seem to be having the same problem, but for different reasons. I'm running a <junit> task inside my Ant build and am getting a ClassNotFoundException . In most of the similarly-related questions (such as the one above), this turned out to be various degrees of the author simply not configuring the JUnit classpath correctly. Although it may very well be the same for me, none of the suggestions

How to strip one folder during Ant copy

怎甘沉沦 提交于 2019-12-08 18:20:39
问题 I have a file which has filepaths like "LibraryX/A/Stuff/FileY.txt", which I'm using as includesfile in Ant build. However, I'm in need of removing the "LibraryX/A/" part of the path DURING the copy process: The file gets copied from "LibraryX/A/Stuff/FileY.txt" and lands into "Stuff/FileY.txt". I've looked into few regexpmappers but haven't had any success with them at all. :/ The purpose for this is that the target folder can have custom files in "Stuff/MoreStuff" overwritten, and I want to

Set ant property by invoking a shell script?

我们两清 提交于 2019-12-08 17:37:39
问题 Is there any way to set an ant property by capturing the output of a shellscript? (or another ant task) Something like this: <property name="foo"> <value> <exec executable="bar" /> </value> </property> Thanks! 回答1: It seems that exec task has an outputproperty-property, like so: <exec executable="bar" outputproperty="foo" /> 回答2: From the ANT exec task Set the output attribute : Name of a file to which to write the output. As Marble has suggested - set the outputproperty When I tested they

jenkins attachments - what is the syntax?

主宰稳场 提交于 2019-12-08 16:21:57
问题 I'm trying to have Jenkins attach a file or set of files to the email notification that the job has completed. I keep getting an error along the lines of: Sending email for trigger: Success ERROR: Error accessing files to attach: Expecting Ant GLOB pattern, but saw C:\p\p\etc\\\*\*\\\*.html . See Fileset syntax And yes I've looked at that site and tried every variation I could think of: / instead of \ ../\*\* ../\*\*/\*.html removing C: What is the Ant GLOB pattern I'm missing here? thanks,

Ant not working in Eclipse Kepler (Java Virtual Machine Launcher - A Java Exception has occured)

▼魔方 西西 提交于 2019-12-08 15:41:15
问题 I recently upgraded to Eclipse Kepler, and am having issues with Ant. I am getting the Java Virtual Machine Launcher - A Java Exception has occurred error no matter which target I choose in my build files. I tried reinstalling my JDK, and I still get the error. I am running the 7u25 version of the JDK. I have my JAVA_HOME environment variable set to C:\Progra~1\Java\jdk1.7.0_25 , so I don't think this is the problem. What else could be causing the problem? EDIT: I also tested ant in the

How can I get the source line number in error stack trace of a jar created by ant build?

二次信任 提交于 2019-12-08 15:30:16
问题 I am using ant to build a jar of my project in eclipse. I deploy that jar on tomcat. But whenever an exception happen in my code (which is inside jar), the error stack trace comes but the line number does not come -- instead it says unknown source. How can I get the line numbers in error stack trace? 回答1: You need to compile your jar with debug information. Specifically, you need to find the javac task that compiles the classes that you later jar and add a debug="on" attribute. Example:

Getting ant to log to file as well as screen/terminal

谁说胖子不能爱 提交于 2019-12-08 14:42:35
问题 I've searched these forums as well as the internet and could not find a clear answer. I'm executing an ant task. I would like the output to get put to the screen as well as a log file ... how can I do this? 回答1: You should use the ant task <record> . See http://ant.apache.org/manual/Tasks/recorder.html. In your ant file do something like: ... <record name="logfile.txt" action="start" append="false" /> ... your ant code... ... <record name="logfile.txt" action="stop"/> The output from ant

Apache ant buildfile looping

岁酱吖の 提交于 2019-12-08 13:45:43
问题 Lord of all beginners here. I'm trying to make a target in a build.xml that restarts itself when it meets a certain condition. I've searched high and low and I can't come up with a solution to make the target...well...loop. I'm stuck on this and it's driving me crazy, so any help is welcomed. Edit: This is the target I want to loop: <target name="prog" description="executes program"> <parallel> <daemons> <exec executable="mch" /> </daemons> </parallel> <exec executable="calculator"

Blackberry Build Tool

情到浓时终转凉″ 提交于 2019-12-08 13:37:38
问题 Could anyone suggest the best Build Tools for use in the build process when building a blackberry application. Is it just the creation of an ANT project, does that cope with signing etc? Is there a better tool out there? I'd prefer a lightweight Windows solution. I normally use Automated Build Studio -- it can build ANT and it can also compile Java. 回答1: I don't know of any serious alternative to bb-ant-tools. 来源: https://stackoverflow.com/questions/3986739/blackberry-build-tool