ant

resolving javadoc files with Ant and Ivy

北慕城南 提交于 2019-12-07 03:10:31
问题 I'd like Ivy to fetch both the log4j .jar and JavaDocs. Right now, I am at a dead end. When If I use this in my ivy.xml ... <dependency org="log4j" name="log4j" rev="1.2.16"/> ... then I just get the .jar file. But when using this ivysettings.xml ... <?xml version="1.0" encoding="UTF-8"?> <ivysettings> <settings defaultResolver="default" defaultConflictManager="all" /> <resolvers> <url name="default" m2compatible="true"> <artifact pattern="http://repo1.maven.org/maven2/[organisation]/[module]

Pass ant target to multiple build.xml files in subdirectories

大兔子大兔子 提交于 2019-12-07 02:46:56
问题 I have a project with multiple modules, each in its own directory. Each module has its own ant build file (build.xml) In the root directory I've set up a general build file that calls the build file of each module in the right order. <?xml version="1.0"?> <project name="bridgedb" default="all" basedir="."> <target name="all"> <ant dir="corelib"/> <ant dir="tools"/> <ant dir="makeGdb"/> <ant dir="cytoscape-plugin"/> </target> </project> Now each module also has a "clean" target, so I add these

Iterating through a directory with Ant

天涯浪子 提交于 2019-12-07 02:34:09
问题 Let's say I have a collection of PDF files with the following paths: /some/path/pdfs/birds/duck.pdf /some/path/pdfs/birds/goose.pdf /some/path/pdfs/insects/fly.pdf /some/path/pdfs/insects/mosquito.pdf What I'd like to do is generate thumbnails for each PDF that respect the relative path structure, and output to another location, i.e.: /another/path/thumbnails/birds/duck.png /another/path/thumbnails/birds/goose.png /another/path/thumbnails/insects/fly.png /another/path/thumbnails/insects

How to detect the windows OS in ANT

前提是你 提交于 2019-12-07 02:32:22
问题 I'm using ant to compile a Java application. The problem is some of the devs are on win 7 and others are on xp and vista. Part of the compiling is to build an msi using WIX, on win7 this is one directory and on xp and vista it's in another. The ant task is controlled in Maven. I'm after a way of telling the difference between windows os's in ant with a conditional tag to set the wix directory. Any ideas? I know it will be in this format: <if> <condition property="isWin7"> Check for windows 7

Error starting modern compiler

馋奶兔 提交于 2019-12-07 02:30:27
问题 In my servlet , I m using Tomcat 5.0 and JRE is 1.5.0 but it is giving error when I click on the URL . As when I created a war file of my project and deployed in tomcat than it is working fine . It means that only problem with my eclipse configuration ERROR IS : - Apr 5, 2010 3:20:22 PM org.apache.jasper.compiler.Compiler generateClass SEVERE: Javac exception Error starting modern compiler at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:69) at org.apache.tools.ant

ant replaceregex replace multiline

允我心安 提交于 2019-12-07 02:13:41
问题 I need replace multiline string in file, like this: startString bla bla bla ... endString by ant replaceregex. Ant code: <copy file="${file}" tofile="${newFile}" overwrite="true"> <filterchain> <replaceregex pattern="startString(.+)endString" replace="zzz" flags="gmi" byline="true"/> </filterchain> </copy> If text for replace is Single line - all works correct, but when text is multiline - replaceregex doesn't work. What I should fix in my code? 回答1: There are a couple of changes you need to

Can I use Ant with NetBeans PHP projects?

安稳与你 提交于 2019-12-07 02:04:26
I would like to use Ant with some of my PHP projects but I'm not sure how. I tried creating a build script with a few targets but couldn't execute any of them from within Netbeans - there's simply no option to. Is this feature supported in this context or not? If yes, then how do I use it (I must obviously be missing something in this case). I'm using NetBeans 6.7.1 (Ant plugin is installed). Mailo Světel Yes you can. It's described on sun blog and according to date of the post, the posibility is here for long time There's also this patch I created that adds ant support to PHP , enabling the

what is correct internal structure of JAR file

北城以北 提交于 2019-12-07 01:47:17
问题 This is a really silly question that I can't fine a difinitive answer to. Background. I'm using Eclipse (with one of the ANT plugins, on an XP terminal). I have just started playing with ANT, in the [jar] directive I am setting the location of my finished JAR file and I get the following when I 'unzip' the file META-INF/MANIFEST.MF MyMainFile.class which is consistent with that found on the oracle web site for the internal structure. (here http://docs.oracle.com/javase/tutorial/deployment/jar

Ant远程部署到Tomcat

烈酒焚心 提交于 2019-12-07 01:43:11
本文涉及的工具 Eclipse4.5.2 Ant1.9.6(Eclipse自带的插件) jsch-0.1.53 (直接点击可以打开下载页面) 具体步骤如下 1.创建build.xml文件 在项目中添加build.xml文件,build.xml是ant默认的文件名,可以修改为其他的名字,不影响Ant脚本的执行,如下图,build.xml和build-webdemo.xml都可以作为Ant脚本。 2.修改build.xml文件 可以参考下面的文件,根据具体情况修改远程主机账号密码和tomcat部署的路径 请确定远程的Tomcat中包含相应的目录,例如本例中的/opt/tomcat7/webapps/demo 不然会提示目录不存在,特别是webapps后面的路径,必须存在,如果不存在,需要先手动创建相应的文件夹,当然你也可以完善一下Ant脚本,先执行一个远程命令,创建相应的文件夹。 <?xml version="1.0" encoding="UTF-8"?> <!-- 使用该脚本是用有些前置条件。 本脚本适用于eclipse或者myeclipse环境中使用 编译文件的默认输出目录为 WebContent/WEB-INF/classes 如果不确定,可以先查看项目java build path 的default output folder 请确定项目已经build过

Ant FTP task fails: java.net.SocketException

本小妞迷上赌 提交于 2019-12-07 01:37:00
问题 I am trying to, with Ant, upload a zip-file via FTP to a Windows Server 2008 R2 FTP server (if it matters). I have a similar task to create the directory /Release, which works, yet somehow uploading via FTP gives me problems. <ftp action="put" userid="${adapter.ftp.username}" password="${adapter.ftp.password}" server="${ftp.hostname}" retriesAllowed="5" verbose="true" systemTypeKey="WINDOWS" remotedir="/Release" > <fileset dir="."> <include name="Adapter.zip"/> </fileset> </ftp> The Ant debug