ant

Migration from ant to Maven producing 100+ jars

試著忘記壹切 提交于 2019-12-13 02:57:54
问题 We are trying to migrate our builds from ant to maven . Project I am working for is using ant since ages. Scripts are real complex where build artifact is a zip file having a definite directory structure. Build creates about 108 unique jars and packages them to this zip file along with many config files and other 3rd party jars. We need this zip file to be same as now even after migration to Maven. I am just a learner on Maven as of now. My question to you guys is that if there is a way using

Ant: How to know if at least one copy task from ten copy tasks actually copied a file

南楼画角 提交于 2019-12-13 02:56:56
问题 I have a target which has several copy tasks; It basically copies the common jars to our set of applications from a centralized location to the lib folder of the application. Seeing as this is a regular copy task a jar will be copied only if it is newer than the one currently in the lib folder. This is the relevant part in the build.xml: <target name="libs"/> <copy file=... /> <copy file=... /> <copy file=... /> <antcall target="clean_compiled_classes"/> </target> <target name="clean_compiled

Maven ant task not getting executed while running cucumber tests

旧城冷巷雨未停 提交于 2019-12-13 02:54:13
问题 We are trying to set up cucumber framework tests. We started with sample tests and it ran fine. I then updated maven to have maven profiles which will do certain tasks specific to that profile. I have profile QA_Smoke and have ant task under it ( for now simple echo) . I have set this profile as active maven profile but whenever I run the profile , task does not get executed. Instead it directly starts cucumber tests. Below is snapshot of maven profile.Can someone please tell,how can we

How to debug java project compiled with ant in eclipse?

亡梦爱人 提交于 2019-12-13 02:50:05
问题 I have a java website hosted in a debian VPS server. When I write new code, I test the web app in my local machine, before to deploy it. In the VPS server I have ant installed, so I always compile my code in the VPS server and then I put the generated WAR file in the webapp folder of tomcat installed in my local machine to test. To compile the source code with ant I write the followings commands. ant fetch-deps ant I need to debug my web app with eclipse. I'd like to have a debug

How can I prevent Eclipse from auto-rebuilding when I edit certain files?

限于喜欢 提交于 2019-12-13 02:49:45
问题 I'm developing a Java application using Eclipse Luna. I began looking into Ant scripts earlier today to develop a way of producing version numbers for the software as it changes. I'm pretty happy with it so far but the one remaining issue I seem to have is that I have an Ant script build.xml which modifies the build number of a property file build_info.properties whenever Eclipse recompiles the source code. However, I've set Eclipse to rebuild automatically which means that any changes made

HSQLDB Manage a new standalone database with ant [Table Not Found In Statement]

怎甘沉沦 提交于 2019-12-13 02:36:39
问题 I'm planning to use HSQLDB, I'm trying an example with ant. the build file: <target name="create.tables"> <echo>Creating tables using: ${db.driver} ${db.url}</echo> <sql driver="${db.driver}" url="${db.url}" userid="${db.username}" password="${db.password}" onerror="continue" src="hsqldb/create_cars.sql"> <classpath refid="hsqldb.database" /> </sql> </target> <target name="load.data"> <echo>Load Data Using: ${db.driver} ${db.url}</echo> <sql driver="${db.driver}" url="${db.url}" userid="${db

Ant publish stuff to different locations

a 夏天 提交于 2019-12-13 02:33:43
问题 I have a java project and an ANT script to build and then distribute the project to other projects with a simple copy command. I would like to only name the place where to copy to files to once in the header of the ant script, and not have an explicit copy-task for every project that is dependent on this project. I can't find anything like arrays in ANT, so what would be the cleanest way of distributing something to multiple directories? 回答1: According to what I commented under Martin's

Getting error as Failed to create data storage when trying to load the data from HDFS with MovieLens data

爱⌒轻易说出口 提交于 2019-12-13 02:26:09
问题 I am trying to load data from HDFS to Pig but I am getting error as Failed to create Data Storage. The command that I executed was: movies = LOAD 'hdfs://localhost:9000/Movie_Lens/ratings' USING PigStorage(':') AS (user_id, dummy1, movie_id, dummy2, movie_rating, dummy3, timestamp); I tried to find the mentioned problem in stack overflow but the link that I got are not related to HDFS and Pig, they are related to HDFS and HBase or Pig and HBase. The detail of the log file is mentioned below.

Real time ant build analyzer

拈花ヽ惹草 提交于 2019-12-13 02:26:01
问题 Is there any Ant tool to Analyze Ant build activities during run time? Due to lack of time i don;t want to go through each line of code in the ant script to understand what it is doing. It would be great if i can get any suggestions for anysuch tools. 回答1: Check out the ANT documentation on ANT loggers and listeners. To print everything that ANT is doing I'd suggest using the very powerful log4j listener. Example The log4j listener needs some setup. Example can be run as follows: ant

Ant - continue the target execution ,even if one target completes for selenium automation

北战南征 提交于 2019-12-13 02:25:50
问题 Is there a way to cause Ant to not quit even if one of a target completes? For instance, several targets may execute, and if the first one stops,selenium will freeze.All the other testcases which are running parallel in other target stops. How to make ant to continue executing other targets,even if one completes. I tried giving -k at target level , but no use. We have failonerror set to true .Does that matter? Here is my build file : <target name="startServerRC" depends="startServerhub">