Hey guys,
How exactly should I specify the location of all the properties files inside the ant manifest?
My jar is not working because it can't find the log4j, Spring, etc properties.
These files are all contained within a folder called "server-config" that sits at the same level as the source code, ie:
META-INF
com
server-config
...
I am running javac task using ant and I send the output to a log file using -Xstdout compiler argument for reporting purposes, but I would like the output also still being send to the console so hudson can capture it for on screen review.
Is there a way for this to be done?
...
I have an application that uses several configuration files (let just consider appli.properties here).
These files contain several values that depend on the environment. We can find some information such as:
server.port=${envi.server.port}
On other side, I have a set of properties files, one per environment (dev.properties, homolo.pro...
I have a flex project and if I build a release version of the application using flash builder with RSLs on my swf is 115k. If however I build the same application using ant the swf is 342k. Without RSLs the swf is 520k.
How do I get the swf to be as small as the one built by FlashBuilder?
Here is my ant file I have another task that co...
Every time I start a new Java project, I find I keep copying my build.xml file from the previous Java project. Is there a way in Eclipse I can just set up a template file, and have it substitute in project specific info (name & directory) ?
...
I'd like to copy a directory of files, and rename some of them in the process.
When I run the script below, nothing copies.
If I comment the glob mappers in the file below, the files are copied (without the renaming)
Thanks for any help.
James
<?xml version="1.0" ?>
<project name="Create project structure" default="main">
<target nam...
Is there an easy way to have the Ant logger (default or other) add a
timestamp to each message?
The only way I can think of is to use the
Log4jListener and have its settings include the timestamp. Or write a
custom logger that subclasses DefaultLogger and writes the timestamp.
If there's a better or easier way (preferably without req...
Hi,
I'm using IBM RAD as the IDE and Websphere Application Server v6.0 to deploy applications.
I'm working on a EJB application and build it using ANT and then deploy it using the Admin Console of the server. For every change this deploying is time consuming. 'Run on server' on the EAR file does not work sometimes.
Is it possible to a...
NAnt has two built-in properties, nant.onsuccess and nant.onfailure, for specifying tasks to run on success and failure respectively.
Is there an equivalent in Ant?
...
Hi,
I am trying to deploy a Maven site to an FTP server. I am using the following code in my pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>ftp</id>
<phase>post-site</phase>
<configuration>
<tasks>
<ftp action="del" server="nexu...
I have an XML file of the following form -
<map MAP_XML_VERSION="1.0">
<entry key="database.user" value="user1"/>
...
</map>
Does ant have a native ability to read this and let me perform an xquery to pull back values for keys? Going through the API I did not see such capabilities.
...
I'm looking for a tool to run java server processes as daemon services in Linux (and potentially on Windows and other OS's). I'm looking for the best practices when it comes to how to build production capable scripts and launch configuration.
I'm familiar with best practices when it comes to a project's build, using Apache Maven, or som...
Hello!
I want to write ANT task to automate the task of starting my server and then open Internet Explorer with the URL of my application.
Obviously I have to execute the startServer task first and then startApplication task.
But ANT is not coming out of startServer task even after starting the server to execute startApplication task....
I have following ant file to build. But unfortunately
<project default="build.deploy.start" basedir=".">
<property name="target.dir" value="C:\tom\webapp\"/>
<property name="basesrc.dir" value="c:\SimpleChat\"/>
<property name="classes.target" value="${basesrc.dir}\WebContent\WEB-INF\classes"/>
<property name="src.dir"...
When running a Java class through Ant, I was having a lot of trouble getting Log4J output, even though the log4.properties was on the classpath. Documenting it here in case anyone else has the same problem.
E.g.
<java classname="Hello" fork="true">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/...
I'm using eclipse to build an ear file using ant. I'm using oc4j, and I want to make sure that orion-application.xml is included in the build. What I'm currently using but does not work is:
<target name="ear" depends="">
<echo>Building the ear file</echo>
<copy todir="${build.dir}/META-INF">
<fileset dir="${conf.dir}"...
I'm picking up support on a project that is currently built with MyEclipse and has a decent sized development team that has been working without any CI processes.
From what I can tell, the MyEclipse folks don't see any value in being able to build outside of the Eclipse platform, which makes no sense at all to me. Continuous Integratio...
Hi there. For a java project I'd like to merge all third-party jars it depends on into the main jar created by Apache Ant, which I already managed to do.
The problem is that some of these jar-files have signature-files in their META-INF-directories, so when I try to run my jar-file, I get the error message "Invalid signature file dige...
I am new to using ANT and am trying to include third party jars in the build using Eclipse 3.5. I keep getting "cannot find symbol" errors in the compilation, so obviously it is not taking these two jars into consideration. If anyone can show me where I am going wrong, or suggest another route, I would appreciate it. Thanks.
JarPath bel...
Using Hudson, Ant 1.7, Tomcat 6.20, JDK 1.6 and JDK 1.5; all on Windows boxes.
My Ant build script for a WAR file uses JARs stored on a remote server. The directory path to the remote server is mapped as a network drive in Windows. A build.properties file is used to specify the paths to the JAR dependencies. When building with Ant, e...