ant

Unable to compile from ant but works from the command line, why?

倖福魔咒の 提交于 2019-12-12 03:57:42
问题 Im having trouble making a class available to my project, in both ant and eclipse. I'm using eclipse juno+wpt , and ant 1.7 . I'm integrating a payment plataform from a credit card company called CrediCard in Venezuela to an already working site. We received a .zip package which contains the following: Im using debian to develop since, to compile and run the project we were intsructed by the bank that we need a dependency called: libc6.1-1.so.2 Needed for the project to run, which i dont

Ant, download fileset from remote machine

﹥>﹥吖頭↗ 提交于 2019-12-12 03:57:00
问题 As I've readen ant doesn't provide 'fileset' attribute when downloading files from remote machine via scp task. It works when sending files from local machine, but It doesn't work when starting in remote machine. That's from documentation. So in remote machine I have some folders and load of files in every directory. I want to download all folders and one specified file from every of them. Downloading all files and then deleting unneeded files won't be solution beacuse there are thousands of

How to specify the classpath to the acceleoCompiler ant task to compile mtl files

二次信任 提交于 2019-12-12 03:55:10
问题 I'm trying to compile Acceleo mtl files using an Ant task: <target name="compileEmtsFiles"> <echo>...... Running Acceleo mtl=emtl file compilation</echo> <acceleoCompiler sourceFolder="src/main/java" outputFolder="build/classes/main" binaryResource="false" dependencies="" packagesToRegister="com.company.MyAcceleoPackage"> </acceleoCompiler> <echo>...... Finished Acceleo mtl=emtl file compilation</echo> </target> But the acceleoCompiler seems to have a problem to find the "com.company

Errors in Ant file in Netbeans 8.0.2 come and go but no .java source errors

混江龙づ霸主 提交于 2019-12-12 03:47:04
问题 I followed this procedure to make a "fat" .jar file--one that contains external libraries inside executable .jar file. But as often as not, and for no specific reason I can put my finger on, I get errors on both lines with ******* on them in \nbproject\build-impl.xml : <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs

Copy entire directory before creating an ear file

走远了吗. 提交于 2019-12-12 03:46:16
问题 I am trying to build an ear file from an ant script. There are several targets that create .jar and .war (to be contained within the ear) files using different projects and these are building without issue so I will not include them. Imagine this directory structure:- Project1/ build/ lib/ META-INF/ build.xml So when the ant script is called the build directory is deleted and remade, all fairly standard stuff. Then I create the jar's and war's from external projects and store them in build/ -

MobileFirst app build - failed creating temporary directory to build adapter

流过昼夜 提交于 2019-12-12 03:36:52
问题 I have working command line build setup for my MobileFirst application. However today when I ran a build, I got following error: BUILD FAILED C:\...\build.xml:29: Failed creating temporary directory to build adapter What might be the cause of this error? I'm running the build via ant: ant build Relevant part of build.xml is: <target name="build"> <app-builder worklightserverhost="${server.address}" applicationFolder="apps/MyApp" outputFolder="${build.dir}"/> <adapter-builder folder="adapters

How to avoid xml header while concatenating xml files in ant script [duplicate]

南笙酒味 提交于 2019-12-12 03:32:58
问题 This question already has answers here : Concatenate xml file in ant script (2 answers) Closed 3 years ago . I am concatenating all the xml files in a folder into a single xml file in ant script. While concatenating the xml files, the header <?xml version="1.0" encoding="UTF-8" ?> in all xml files are getting appended in the output xmlfile. Is there any way to avoid this header ? <concat destfile="${docbook.dir}/all-sections.xml" force="no"> <fileset dir="${docbook.dir}" includes="sections/*

Importance of tools like Ant Maven

筅森魡賤 提交于 2019-12-12 03:19:29
问题 I am a novice programmer in Java. I would like to know how important is it working on tools like maven/ant as compared to gaining a lot of hands on expereince in Java. 回答1: I would stick to first learning java. Tools like Ant and Maven are mostly used for packaging a project and library dependencies. Both tools are also powered by Java so after learning abit of Java it will definately be easier to master them. Basically when you feel like you need a solution for building your projects, it is

Missing WLInitializationPlugin when app is started worklight 6.2

醉酒当歌 提交于 2019-12-12 03:17:31
问题 i've made ant tasks for build and deploy my project. The ant tasks are proper configured, but when the application is downloaded from the appcenter or installed from the generated apk from jenkins it throws some classNotFoundExceptions when getting started: 02-10 16:10:54.860: W/System.err(7584): java.lang.ClassNotFoundException: com.worklight.androidgap.plugin.WLInitializationPlugin 02-10 16:10:55.640: W/System.err(7584): java.lang.ClassNotFoundException: com.worklight.androidgap.plugin

Using ANT properties in Jenkins build job

℡╲_俬逩灬. 提交于 2019-12-12 03:12:09
问题 I'm trying to exec a script from my ANT-task. This script does some svn-stuff and should then set the outputproperty svndiff : <target name="svn-diff"> <exec executable="/usr/local/rbenv/shims/ruby" outputproperty="svndiff"> <arg line="${source.dir}/changeparse.rb" /> </exec> </target> I want to use this svndiff property to send it via email in a jenkins post-build-step to some recipients, but i cannot seem to use it in Jenkins. The mails i receive from this only have $svndiff as content. Don