I'm very new to ANT and have started using it in a Flash Builder project.
When I run the compiler I need to pass in some library paths. The whole thing looks like this:
<mxmlc
file="${SOURCE_DIR}/com/${PACKAGE_NAME}/Main.as"
output="${RELEASE_DIR}/assets/swf/${IDENTIFIER}/main.swf"
locale="${LOCALE}"
...
Hello All,
I want to copy only the parent folders names from source and then create the folders with those names in a destination directory.
Ex:
source
- folder_1
- sub_1
- folder_2
- sub_2
- folder_3
- sub_3
destination
- folder_1
- folder_2
- folder_3
Could you let me know the pattern matching for ...
I have installed Apache Ant and set the correctly the Path, CLASS_PATH and ANT_PATH variables. When I run a jar task in a command line within my project folder where the build.xml file is, I get the following error:
BUILD FAILED
C:\Documents and Settings\TonyS\My Documents\My Workspace\code\build.xml: 32:
The following error occurred ...
Are there any ant tasks out there for listing running processes and optionally killing them, something that is not platform dependent (i.e wraps both tasklist and ps) ?
...
I'm using an Ant task to invoke Google's GWT compiler, as in:
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<arg value="package.of.GWTClass" />
</java>
This works, but I'd like to avoid recompiling the entire project during each Ant build in none of the dependencies have changed. I'm aware that Ant ca...
Hi
I've a long build.properties file made by someone else. I want to see available targets without going through the file. Does ant have a command for this?
Like 'ant show-targets' so that it will list all the targets in the build file.
...
I have the following
1 java class
1 bat file (starts the groovy script)
1 groovy file
All is in the same folder
Now I want to use Maven or Ant to run the groovy file but I cant get it to work. Is there someone who can show me how to write this pom.xml or build.xml? I dont want to use the bat file anymore.
...
I'm wondering if there's some way to use ant to check if multiple files are available on disk.
Currently, I have an ant task that looks very much like this:
<target name="copyArtworkToOutputDir" if="artworkContent">
<copy todir="${imageOutputDir}" failonerror="true">
<fileset dir="${sourceDir}" includesfile="${buildDir}/artworkli...
Hello,
I use the Ant API for creating tasks programmatically, but I have not yet found the class that create JUnit report task.
in short, I want the equivalent of the code below using the Ant API:
<junitreport todir="..">
<fileset dir="..">
<include name="TEST-*.xml" />
</Fileset>
<report format="frames" todir=".." />
</Junitreport>
...
We have migrated from CVS to Git. Our Hudson build script used to save the value of the CVS_BRANCH environment variable in the generated build along with the Hudson BUILD_ID to allow for later investigation.
I cannot figure out how Hudson (or the Git plugin) presents the Git SHA1 name of the current commit to the ant script, as I canno...
I am using Ivy to publish a snapshot of a built Jar to a locally hosted Nexus repository using the following Ant target.
<target name="publish">
<ivy:publish resolver="nexus_snapshot" pubrevision="SNAPSHOT" overwrite="true">
<artifacts pattern="${dist.dir}/[artifact].[ext]" />
</ivy:publish>
</target>
This appears to w...
Hello,
I need to generate an apk file using an ant script but I'm having problems in the compile target. To generate automatically the ant script I've used the android tool with the command "android update project". The problem is that this project depends on another project so I need to do a custom compile task. For that reason I've ov...
Hello,
Possibly one of those really terrible beginner questions where the manual will tell you everything, but, anyway, take this line below:
ant -Dfoo=bar buildme
in my build script, what is the parameter, variable to pick up "buildme"?
Regards
Steve
...
I have been looking at and playing around with IVY of late for a new project. I know that there are two camps on this topic and a lot of reasons people choose one or the other. This question is not focused on that.
What I am interested in is when I use IVY to say get the Spring Frame using the Maven 2 repository I get a Ton of Jar file...
Is there a way to have Ant create a runtime shell or batch runtime script instead of having to manually create the script myself.
It would be similar to the functionality of link text
...
I have an existing java project with an ant build.xml and I'm trying to use Netbeans as my IDE.
In Netbeans I've created a new java free form project and pointed it at my ant file. This works fine for building, running, etc. However code completion does not work unless I manually add all the java sources for my project (that are alread...
I have an ant script that I am trying to run my junit test from. It runs all but the junit portion of the ant with no errors. Anyone know why it's not hitting this portion of my script?
<?xml version="1.0"?>
<property file="build.properties" />
<property name="test.class.name" value="edu.psu.ist.probability.TestProbability" />
<...
How come Eclipse compiles my project (automatically) without errors, but when I run Ant build.xml -> compile target, the build fails with compile error:
<MyClass> is not abstract and does not override abstract method <someMethod>
I understand this error message, but it seems not to be true, because 1) Eclipse shows no errors 2) Deploy...
Hello,
I'm trying to run the following command using exec in ant:
ls -l /foo/bar | wc -l
Currently, I have my exec looking like this:
<exec executable="ls" outputproperty="noOfFiles">
<arg value="-l" />
<arg value="/foo/bar" />
<arg value="|" />
<arg value="wc" />
<arg value...
Hello,
I am currently writing some comments for my ant targets just to help document the purpose of each and how they work.
Is there a defacto standard or useful utility available to generate documentation off these. Something like JavaDoc or PHPdocumentor perhaps?
Regards,
Steve
...