ant

Hudson continuous integration server: how to see Windows mapped directories that are visible to Ant?

倖福魔咒の 提交于 2019-12-10 10:37:41
问题 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, either at command line or in Eclipse, the WAR builds and deploys successfully. Example from build.properties: lib.log4j=S:/Support/JARs/log4j-1.2.15.jar In the

Using Apache ANT to deploy web applications?

依然范特西╮ 提交于 2019-12-10 10:35:12
问题 I was just able to get Apache ANT running on my computer. The ant -version commando outputs the version number , verifying that the installation went well. I have read that ANT is well suited to handle deployment of web applications including PHP projects and have spent some time to get it working, but I just can't get my head around how to set it up to sync my files to my web server. How can I make ANT sync folderA with folderB ? Thanks 回答1: Last time I checked (long ago) there was no remote

How to execute jar file in gradle?

旧城冷巷雨未停 提交于 2019-12-10 10:34:17
问题 When I use the ant to build my android project , I need some task like this: <java jar="./build_tools/yuicompressor-2.4.8.jar" fork="true" failonerror="true"> <arg value="-o"/> <arg value="${out.dir}/all-min-mobile.js"/> <arg value="--charset"/> <arg value="utf-8"/> <arg value="${out.dir}/all-mobile.js"/> </java> I need to do the process in my gradle build process.Then I put following script in my build.gradle file: task (runCompressTool , dependsOn: jar, type: JavaExec) { classpath files('.

Could not load definitions from resources

瘦欲@ 提交于 2019-12-10 10:33:02
问题 I have a (hopefully) very basic question. I'm very unfamiliar with Ant, I'm just trying to use a build file so I can write some plugins for an open source application I found recently, Rapid Miner. I've been trying to compile it with Eclipse (following Eclipses.org's own instructions on how to do so.) Every time I click Run though I get an error that looks like this: Buildfile: C:\Users\jcarr14\Eclipse\Workspace\RapidMiner_Unuk\build.xml [taskdef] Could not load definitions from resource net

How to run Ant inside Visual Studio 2008?

笑着哭i 提交于 2019-12-10 10:28:46
问题 I'm wondering if anyone out there has any ideas about how to run Ant inside Visual Studio 2008. I'm looking to perform some pretty common Ant tasks such as selecting a target to run inside a build file. I have come across and am aware of NANT as well as MSBUILD as more preferred build tools for ASP.NET projects, but I am only interested in some ideas about running Ant within the IDE. Thanks in advance! 回答1: As a quick and dirty solution you could add it using the External Tools... option in

How to extract part of a filename with Apache Ant?

左心房为你撑大大i 提交于 2019-12-10 10:28:30
问题 I want to extract the version number from a file name generated outside of my Ant script. An external build tool (PDE build) creates a file of the form artifactid-1.2.3.201101010101.jar in a well-known directory, but I can not tell the versioning information beforehand. I need to extract the version part ( 1.2.3.201101010101 ) from that file name into an Ant property for further processing, e.g. variable substitution. Using ant-contrib is acceptable, however I have not found a way to extract

stumbling blocks galore while trying to run org.hibernate.tool.ant.EnversHibernateToolTask

点点圈 提交于 2019-12-10 09:54:41
问题 I'm trying to run org.hibernate.tool.ant.EnversHibernateToolTask as suggested in the rather terse guide to Envers (2nd line of table, Documentation has a link to a PDF). Here's my ant task tweaked so it successfully finds org.hibernate.tool.ant.EnversHibernateToolTask and org.hibernate.tool.ant.HibernateToolTask; now it can't find org.apache.tools.ant.Task and I have the sinking feeling I am doing something wrong. <target name="schemaexport" depends="init" description="Exports a generated

Resolving XSD's using Ivy

荒凉一梦 提交于 2019-12-10 09:54:39
问题 Forgive the double post but I am keen on an answer to this. I would like some advice as to the approach I am taking. I am using Ivy for dependency management and am able to download and use all my jar files no issues. I would like to also run the <schemavalidate> task in Ant and would like to use Ivy to download the xsd's and dtd's as specified, thereby eliminating the need for a network connection after the initial download and also reducing my build time. I think I have a solution but

Create Multiple JARs from Eclipse Project

為{幸葍}努か 提交于 2019-12-10 09:32:36
问题 I have begun working on a project that, at the moment, produces a monolithic JAR file from an Eclipse project. Basically, there is an Ant script that runs anytime the Eclipse Java Builder runs and takes the output of the Eclipse Java Builder (the .class files) and packages that up into a JAR file. That JAR file is then placed in a common directory so other tools can grab it for the latest build. This works well for the team so I don't want to change it too much, but, there are a lot of

ant regex for android package names

删除回忆录丶 提交于 2019-12-10 09:25:22
问题 in my android project all of my .java view files import the R file based on the name of the current package. When I change the name of my package name in the Android Manifest (dynamically, not refactoring via Eclipse or any other IDE), I need to the references of all my java files to point to the new R file that gets generated I am making a build script via Ant, but I am not sure what the regular expression convention would look like The strings that need to be replaced look like this: import