ant

How to quickly deploy assets to Amazon S3 with an Ant target?

What is the quickest way to deploy content to a CDN with an Ant target? My Ant target is running on a continuous integration server (Hudson). My current solution uses curl and is a bit slow. Should I use wput or something else and how would I do that in ant? <target name="Deploy"> <for param="file"> <path> <fileset dir=...

Compress JS and CSS while deployement

I am using ANT to deploy build in to Tomcat Server. I Want to compress the static files CSS and JS only when i deploy to the server. any suggestion? ...

Ant build symlink error

Hi, I am getting the symlink error when i do an ant build. Searched in net and some posts suggested to download junit jar for fixing it. Downloaded junit-4.8.2.jar. Added this jar file to Classpath but still's not working. I tried to include the jar file within the build.xml but still it didn't work out. <target name="-createDir"...

CVS checkout on windows ANT Build: invalid CEN header (bad signature)

I have code in CVS and when I checkout the code and do an ANT build on my Windows box I receive the following errors. Buildfile: C:\Java\JDeveloper\library\build.xml compile: [javac] Compiling 181 source files to C:\Java\JDeveloper\library [javac] error: error reading C:\Java\JDeveloper\library\lib\jdom.jar; invalid CEN header ...

How can I export my project in Flash Builder 4 to an ant build?

Greetings, I am developing a project with Flex, and I need to deploy my project in a form which can be used by developers who do not have access to Flash Builder. I've found references to plugins from Faratasystems, but it appears their sourceforge site is a little bit rusty. I could not find an up to date installation file that'd incl...

Test for floating point equality. (FE_FLOATING_POINT_EQUALITY)

I am using a findbugs in an ANT script and I can't figure out how to fix two of my errors. I have read the documentation, but don't understand. Here are my errors and the code that goes with them: Error 1: Test for floating point equality. (FE_FLOATING_POINT_EQUALITY) private boolean equals(final Quantity other) { return this.mAm...

TDD for Ant Script Development

I have been handed a complex set of Ant scripts for feature additions and maintenance. No test framework whatsoever has been used for developing those in the past. I want to start developing the new features inside tests. The scripts use a mix of ant, ant contrib and custom made tasks, I am not going to be adding any new tasks, just scri...

ant : jar and zipfileset - copy files from one JAR into another

I am currently doing this: <jar update="yes" jarfile="${pwd}/dist/${release}_installer.jar"> <zipfileset src="${pwd}/dist/app.jar" includes="com/izforge/izpack/panels/**"/> <zipfileset src="${pwd}/dist/app.jar" includes="com/xyz/img/logo.png"/> </jar> My existing installer JAR gets updated to include the file...

Javac exclusion of package in ANT build.xml

I'm trying to compile all my packages except two of them, here is what my javac in build.xml looks like <javac srcdir="${src}" destdir="${output}" debug="${debug}" failonerror="yes" > <exclude name="com/abc/uyyy/**"/> <exclude name="com/abc/zzz/**"/> <include name="com/abc/zzz/Text.java"/> <patt...

Ant inheriting Maven properties

I am considering converting an Ant/Ivy project to Ant/Maven-Ant-Tasks. I do not want to use Maven by itself because I need more control over the build process. Is there any way for the Ant build.xml file inherit properties set in the pom.xml file? I have been creating a generic build.xml file that can be used across several projects an...

Excluding files from a pathref in ant

Hello, in a project we have several source pathes, so we defined a path for that: <path id="de.his.path.srcpath"> <pathelement path="${de.his.dir.src.qis.java}"/> <pathelement path="${de.his.dir.src.h1.java}"/> ... </path> Using the path works fine in the <javac> tag with: <src refid="de.his.path.srcpath" /> In the nex...

Eclipse warnings using the iajc ant task

We are currently using the Aspect J ant compiler iajc to compile our code. Now we want to get the Eclipse warnings when compiling with ant but we don't want to change away from using the iajc ant task. Is there a possible way to achieve this? Currently our compile iajc task looks like this: <iajc outJar="${dist}/${dist.jar}" source="1....

Not able to copy jar to an absolute path

I am trying to copy Demo.jar file (generated by an ant task) on my desktop(or any directory specified by it's absolute path on my XP machine). I am specifying absolute path in a properties file and reading it on the fly. The problem is I am not able to read this absolute path properly, where I want my Demo.jar to be copied. Absolute pa...

ANT - javac compile failure due to cannot find symbol

I'm trying to compile ActionFactory.java file which imports one of my package, RegisterAction.java Here is the file structure: /com/masatosan/actions/register/RegisterAction.java /com/masatosan/redirector/ActionFactory.java According to the ANT output, I think ANT cannot find RegisterAction.java which is imported in ActionFactory.jav...

Spring application ant build fails.

Hi folks, I am very new to java and spring. I was trying out my first ever application in spring. I followed this tutorial http://www.ibm.com/developerworks/opensource/tutorials/os-ag-springframe2/section6.html I am unable to build using ant. I get this error when I try to build. deepak@deepak-laptop:~/geronimo-tomcat7-javaee6-3.0-M...

Need CruiseControl modification set in custom ant task

Is there any way to pass the CruiseControl modification set to a custom ant task? My setup: I have a CruiseControl (the original one, not CC.NET or suchlike) instance that monitors a SVN repository of binary packages waiting to be tested. Whenever a new binary package appears, this package should be sent to another "test host" to test i...

Troubleshoot | Webservice building using ANT

Hi, I've been given a Web-service written in Java using the metro web-stack. Now, I've written a ANT script to build the WSDL and generate a war file with the contents and deploy into my tomcat. When I run the server, it doesn't recognize the WSDL, is this a correct process? How do I deploy the WSDL and then generate the client stubs...

Javadoc Ant OutofMemoryError

When creating an ant build script to generate Javadoc, Eclipse is receiving an OutOfMemoryError. The ant build has the -Xmx512m and -Xms512m settings under the JRE tab in the run configuration. This works great for compiling the application. The only trouble is with the Javadoc portion of the build. Here is the build.xml file <target na...

Java app loads JNI differently when started via Ant

I'm using RXTX in my Java application which includes a JNI library. I placed the .jni file in /Libray/Java/Extensions. When I start my application manually via the usual java -jar /path/to/app.jar everything works fine. However when I try to start it via Netbeans or Ant it fails with [java] java.lang.UnsatisfiedLinkError: /Library/Jav...

Installing ANT on Cygwin

I'm having some trouble figuring out how to istall Ant on cygwin. I want to use Ant to build Nutch. I've looked through a bunch of tutorials but I can't find anything that is low level enough for me to understand. I need something like... Download ant, put it here Open Cygwin type "export ANT_HOME=..." ... Can anyone help me out h...