ant

How to package libraries into my jar using Ant

强颜欢笑 提交于 2019-12-08 13:11:35
问题 My application relies on two external libraries, I have both in jar format and have added them to my classpath, making it possible to run my application within NetBeans. However, I would like to package my application in an easy to use jar file. When I tried the automatic method of jar creation provided by NetBeans (where it auto generates a jarfile in dist/ ) and ran it on another computer, I got lots of ClassNotFound (or similar) exceptions for classes that I could tell were supposed to be

Action class not found - Struts 2.3

自古美人都是妖i 提交于 2019-12-08 13:04:08
问题 <Jul 29, 2015 10:55:58 AM IST> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: org.apache.st ruts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter. Unable to load configuration. - action - zip:C:/DEV/bea92MP3/user_projects/domains/cv_domain/servers/AdminServer/tmp/_WL _user/ficv2/3ie869/war/WEB-INF/lib/_wl_cls_gen.jar!/struts.xml:9:72 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:493) at org.apache.struts2.dispatcher.ng.InitOperations

cmd error: 'ANT' is not recognized as an internal or external command

一个人想着一个人 提交于 2019-12-08 12:13:43
问题 New here any just about anything else discussed on this site! Anyway, I'm trying to install ant on my machine but I'm getting an error from cmd: 'ant' is not recognized as an internal or external command, operable program or batch file when running ant -version or ant -v . I'm using a Windows 7 machine (SP 1). echo %PATH% command returns C:\ProgramData\Oracle\Java\javapath;C:\Oracle11g\product\11.2.0\client_1\bin;C:\ Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C

How to run only specific JUnit tests in Ant?

喜你入骨 提交于 2019-12-08 11:17:20
问题 I have a sample project structure that looks like this. Now I want to only run MyTestTwo through build.xml and not MyTest. How do I go about doing this? When I tried running only one test then I achieved it by doing this: <target name="runJUnit" depends="compile"> <junit printsummary="on"> <test name="com.edu.BaseTest.MyTest"/> <classpath> <pathelement location="${build}"/> <pathelement location="Path to junit-4.10.jar" /> </classpath> </junit> </target> How do I achieve this if I have to do

Building Hadoop 1.2.1 core jar using ant - Failed

孤街醉人 提交于 2019-12-08 11:14:39
问题 I need to make some modifications to the map class and reduce class from Hadoop, so, I have been trying to compile Hadoop 1.2.1 jar files using ant from the source files, but I always get the following error: Buildfile: build.xml clover.setup: clover.info: [echo] [echo] Clover not found. Code coverage reports disabled. [echo] clover: ivy-download: [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0 /ivy-2.1.0.jar [get] To: /home/user/Downloads/hadoop-1.2.1/ivy/ivy-2.1.0.jar

Move a ant dir project after the ant or subant task completes

送分小仙女□ 提交于 2019-12-08 10:11:54
问题 Currently i'm using a shell script to do the following: cd myproject1/ ant cd .. if grep 'sucessful' myproject/buil.log then move myproject ../backup/today/ And so on for myproject2, myproject3. If some error happens, the project stay in the current dir to be reprocessed but the whole process continues. I want to migrate this process to an ant build script but i have no clue on how to do this. I have looked at ant and subant tasks. Ant looks more suitable to the job but i can't find a way to

How to include Ant flaka jar?

三世轮回 提交于 2019-12-08 09:12:33
问题 I am writing ant scripts and using Ant flaka jar to do some work. But flaka doesn't work as other external Ant lib. For example, if I need to include ant-contrib: <taskdef resource="net/sf/antcontrib/antlib.xml"> <classpath> <pathelement location="../../lib/ant-contrib.jar"/> </classpath> </taskdef> Most importantly, I can specify where the jar is located. But for flaka, I don't see such thing. In the official website, they just tell user to download flaka jar to Ant installation folder. How

VSCode Task to run ant buildfile located anywhere

若如初见. 提交于 2019-12-08 09:03:17
问题 I have a huge project spread across multiple source directories which was developed the last 15 years using eclipse with custom external tools configurations to launch ant tasks from build.xml files anywhere inside the source directories (a big mess, I know!). As the everyday work is mostly xml and JavaScript based, I thought of VSCode as a lightweight alternative (as eclipse is e.g. unable to deal with large xml files without exceeding HeepSpace). Task Runners look to me like a great way to

Android Project Compiled with Ant doesn't compile, Illegal Character Error

两盒软妹~` 提交于 2019-12-08 08:59:28
问题 I am using ANT to compile an Android app that I have built. It sounds weird and probably doesn't make a difference, but I used the Android SDK to build a new project and then I used .NET to programatically modify a couple files within the project so it would build the way I wanted. I have loaded the project into Eclipse, and it appears to compile properly, but when I run it through ANT, it doesn't compile properly. The error seems to say that I have a '?' in the one activity in the project. I

I have ant script which works for clearcase. Can any one help me to convert it to GIT

こ雲淡風輕ζ 提交于 2019-12-08 08:45:22
问题 I am migrating one application from clear case to GIT. A build script is written to increment build number and it is written with respect to clear case. And now I have to make it work for GIT. Anyone kindly help me to modify below code to make it work for GIT. I have changed the executable path to GIT.exe. So I just help to convert clear case commands to GIT. <target name="decBuildNo"> <trycatch property="exception"> <try> <exec dir="${basedir}\calcBuild" executable="${cleartool}" failonerror