ant

Running an OS command using apache-ant to IIS config

China☆狼群 提交于 2019-12-24 08:58:21
问题 I'm trying to create an ANT script which amongst other things will configure IIS. To do this, trying to harness the appcmd tool. However getting a strange error. The appcmd command runs fine outside of the ant script, but fails within. I'm using the exec task to kick it all off : <exec dir="C:\\Windows\\System32\\inetsrv\\" executable="C:\\Windows\\System32\\inetsrv\\appcmd.exe" output="d:\out.txt"> <arg value="appcmd set config /section:isapiCgiRestriction /+" [path='${appian_home}\\jakarta\

Build 1 war from two separate web applications using ANT

孤街浪徒 提交于 2019-12-24 08:56:43
问题 Is it possible, by using ANT, to create 1 war-file out of two separate eclipse java web application projects? Besides from just copying the right files to the right places i would have to be able two create one single web.xml. Also some other files that exists in both projects should be united into one file. Thanks Pich 回答1: If you want to package multiple web applications together, the standard format for that is an EAR file. http://en.wikipedia.org/wiki/EAR_(file_format) 回答2: Ant doesn't

Split organization name into nested folders using ivy:retrieve

对着背影说爱祢 提交于 2019-12-24 08:21:37
问题 In ivy I can set a retrieve pattern in order to copy all my dependencies somewhere I want to. For example: <ivy:retrieve pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision].[ext]" conf="compile" type="jar,bundle" sync="true"/> I wonder is it possible to treat organization not as a folder, but as a set of nested folders, and keep in deepest folder (which is revision) the jar package, just like jars are stored in maven default repo. So, basically I want to have

Adobe ASC 2.0 and ASDoc

 ̄綄美尐妖づ 提交于 2019-12-24 08:16:04
问题 After upgrading to the AIR 3.6 SDK which uses the new ASC 2.0 compiler all the ASDoc tasks in my Ant build files fail. I'm getting the error: BUILD FAILED E:\Projects\Eclipse\project\build\build_swc.xml:51: The following error occurred while executing this line: E:\Projects\Eclipse\projectbuild\build_swc.xml:209: Problem: failed to create task or type asdoc Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check

ant tar task: way to enable “tar append”?

陌路散爱 提交于 2019-12-24 08:08:20
问题 Goal: use ant to create a single tar archive for any combination of (say) 5 folders (all folders, or any 3 folders or any 4 folders ...). I prefer not using temp dirs and the copy command. This should be simple if the ant tar task supports append. A search lead me to: Setting mode="update" in the compress antlib's tar task should do what is requested. from: https://issues.apache.org/bugzilla/show_bug.cgi?id=39617 How do I know if 'antlib' is installed, or how do I install it. How does one set

JAR File NoClassDefFoundError

喜夏-厌秋 提交于 2019-12-24 07:27:04
问题 I am trying to build a runnable JAR file of a project by using build.xml file and the prompt code cd <the directory of you application> ant -f bin/build.xml jar But I have exceptions when I run the JAR because I cannot add the external JAR. the build.xml is as follows: <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- This file was generated by Jason 1.3.9-alpha http://jason.sf.net Ocak 11, 2014 - 01:09:12 --> <project name ="virtualClassroom" basedir=".." default="run"> <property name="mas2j

Maven deploy:deploy-file not found due to version/timestamp appended to jar

别说谁变了你拦得住时间么 提交于 2019-12-24 07:26:38
问题 I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please. I have 2 projects; 1) Ant based and 2) the other Maven based that consumes the jars of the other project via Archiva . I've added a target to the Ant project to deploy snapshots on every successful build during our iteration. The problem is the Maven project cannot find them because the name of the dependency has a timestamp appended like so : someJar-1.0-20100407.171211-1.jar Here is the Ant target:

How to debug android project from git using Jenkins frontend?

喜夏-厌秋 提交于 2019-12-24 07:09:51
问题 I have installed Jenkins on my ubuntu 11.04 system using command "apt-get install jenkins". I am able to executes "ant debug" command from linux command line well and completed successfully But when i am trying to debug Android project from git hub using jenkins frontend by setting build target "Invoke ant" with properties "sdk.dir=/opt/android-sdk-linux-ics". It is giving following error Console Output : ########################################################################################

Ant in Netbeans: overriding run target doesn't work

送分小仙女□ 提交于 2019-12-24 06:58:22
问题 I am trying to override the "run" target in a Netbeans project. What I'm doing is editing the file build.xml : <project name="Test123" default="default" basedir="."> <import file="nbproject/build-impl.xml"/> <target depends="init,compile" name="run"> <echo>AAAAAAAAAAAAAAAAAAAAAA</echo> </target> <target depends="init,compile-single" name="run-single"> <echo>AAAAAAAAAAAAAAAAAAAAAA</echo> </target> </project> I tried to override both "run" and "run-single", but both things doesn't change

NoClassDefFound error for a jar created using ant build

橙三吉。 提交于 2019-12-24 06:55:32
问题 I have a java project with class having main method in package com.nik.mypackage. Only one library is referenced which is someLib-5.0.2.jar This library is in lib folder in eclipse and added to the build path. I am creating executable jar of the application using the below ant script target: <property name="src" location="src"/> <property name="build" location="build"/> <property name="dist" location="dist"/> <target name="init"> <tstamp/> <mkdir dir="${build}"/> </target> <target name=