A beginner's question.
I'm building a .swf with Flex Ant.
To my .swf I link a file, target.as, which I generate from file source.txt with command
./tool.sh source.txt > target.as
How can I add what is described in the above sentence to my ant build process?
...
I was trying to check out a project from SVN using Eclipse. I tried using "Checkout As" to make it into a "Java project from existing Ant script", but the project wizard requires the file to have already been downloaded. Is there a way to checkout the project into Eclipse as a Java project, without having to download it elsewhere first?
...
I was trying to add Ant libraries to a project in eclipse, and I used the ones that were part of eclipse's plugins folder. When I tried to associate them with Javadocs, I couldn't locate them in the plugin folder. I searched for them online, and I found this page, in which they say the docs are not provided online because they are part o...
The java.library.path property appears to be read-only. For example when you run ant on the following buildfile
<project name="MyProject" default="showprops" basedir=".">
<property name="java.library.path" value="test"/>
<property name="some.other.property" value="test1"/>
<target name="showprops">
<echo>java.library...
I am looking for a utility that will suck in an ant build file and present a graphical display of the targets and properties available to that target. Please don't respond with 'VisualAnt' I own it and it sucks.
...
If I have a fileset like this:
<fileset dir=".">
<exclude name="classes/*"/>
<include name="**/zar.class"/>
</fileset>
The exclude takes precedence over the include and I don't end up with any classes. [since for this hypothetical example, zar.class is in the classes dir] I would like to include the zar file, even though it is in...
Sorry, I'm not terribly experienced with Ant.
I like the eclipse "Export ant buildfile" function, but I need to insert a few custom tasks (Copying files, calculating checksums that are used at runtime, etc).
How do I integrate custom ant tasks with the antfile that Eclipse exports? Also, once I've done so, will the internal build (Run...
Hi,
I will use Apache Ant and Apache Ivy to build a web application which is deployed to a local Tomcat instance (during development). I have some questions:
I want to grab most of my dependencies from the Maven2 repositories which works fine, but for the servlet JAR I would like to use the one Tomcat provides. Is there a way to do th...
We have a CruiseControl server running various AntUnit, MbUnit and NUnit tests via Ant.
In order to merge the outputs from them all we have the following in the CruiseControl config:
<log dir="logs/${project.name}/">
<merge dir="${q7.build.tests.dir}/reports" pattern="*.xml" />
<merge dir="${q7.build.tests.dir}/reports" pattern="**...
I have an ant task, and within it I'd like to get the current process id (a la "echo $PPID" from commmand line).
I'm running ksh on Solaris, so I thought I could just do this:
<property environment="env" />
<target name="targ">
<echo message="PID is ${env.PPID}" />
<echo message="PID is ${env.$$}" />
</target>
But that didn't...
My problem is to create an ant target for automating our installer running in console mode.
The installer is created using InstallAnywhere 2008, which UniversalExtractor recognizes as a 7-zip archive. Once I have the archive unpacked, it appears that the task can use an input file to drive the console (at the very least, it appears th...
I'll try to better explain my problem.
Using Eclipse and MTJ (Mobile Tools for Java) plugin you can set some directives for the preprocessor in order to create different builds of your code, like in C/C++.
My problem is that i'm unable to use this feature. I mean, when i build my sources, the resulting output contains every line of code,...
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:
<pro...
I wish to use the Tomcat install/deploy tasks from catalina-ant.jar to deploy a webapp to a remote app server.
After installing Ant using the instructions found here, my ant folder is configured as:
/usr/local/ant
My "Ant Home" has also been set to that directory through Eclipse. I copied catalina-ant.jar to my ant/lib folder.
My b...
I need to create an RPM package from an ANT script that runs on a Windows computer. This package must contain the result classes from the build plus some other, additional resources.
I guess there should be some program somewhere that can be invoked from the command line to create this package.
The reason why I want to do this under w...
Given a property:
<property name="classes" value="com.package.Class1,com.package.Class2" />
I'm trying to compile only the classes specified like:
<javac srcdir="${src.dir}" destdir="${build.dir}">
<include name="${classes}" />
</javac>
However the 'include' tag is specifying the file names to include, not the qualified class n...
I want to set a property in an ant task differently by os type.
The property is a directory, in windows i want it to be "c:\flag" in unix/linux "/opt/flag".
My current script only works when i run it with the default target, but why ?
<target name="checksw_path" depends="if_windows, if_unix"/>
<target name="checkos">
<conditio...
I'm using Ant 1.7.1 to tar up the contents of a directory, that contains a .git subdirectory. My current task is
<tar
destfile="sali-src-${version}.tgz"
basedir="${basedir}"
compression="gzip"
excludes=".git, .gitignore, *.ipr, *.iws, *.iml">
</tar>
But the resultant tarball contains the .git subdirectory. Could anybod...
Hi All,
I'm trying to run my junit tests using ant. The tests are kicked off using a JUnit 4 test suite. If I run this direct from Eclipse the tests complete without error. However if I run it from ant then many of the tests fail with this error repeated over and over until the junit task crashes.
[junit] java.util.zip.ZipExcept...
Hi,
My Ant build includes a junit task that runs some tests. In order for the tests to work, the value of the property that specifies the current working directory (user.dir) must be changed, but I am unsure how to achieve this.
The task in question currently looks like this:
<junit printsummary="withOutAndErr" fork="true" haltonfailu...