ant

Is there a way in Ant (using Groovy?) to post info to an http URL and then parse the response?

时光总嘲笑我的痴心妄想 提交于 2019-12-13 02:25:29
问题 I've found a way to read an HTML page in Ant with Groovy + HTMLCleaner (see: Parse HTML using with an Ant Script ) but I am unable to find a way to first POST some data to a URL and then get a response and be able to parse that with HTMLCleaner (or something similar). Is this posible? 回答1: You can use the groovy REST client, which is part of the HTTPBuilder project. <target name="invoke-webservice"> <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="build.path"/>

What needs to be in a .war file to deploy a Flex application?

寵の児 提交于 2019-12-13 02:15:37
问题 I've been using Flex Builder 3 to create Flex applications that are part of larger Flex / Java project using LiveCycle Data Services. Flex Builder creates and deploys the .war file, which is convenient for the development cycle, but I don't understand what the .war file has to contain in order to deploy and run. I've found through trial and error that changing certain properties of the Flex Project (i.e. the Context Root) can break or fix the application, and somehow those settings make it

Ant 1.9.4 won't clean and build Netbeans 8.0.2 project using Java 8; gives null pointer exception

一个人想着一个人 提交于 2019-12-13 02:14:43
问题 My code has no errors. If I choose F6 (Run) it executes fine. If I Clean it, there are no errors. But if I clean and build, I get these errors because of bug(s) in Netbeans 8.0.2 and/or Ant 1.9.4. The completely unacceptable workaround is to create a new project and copy all the files into it. This works for awhile. Then I have to do it again. EDIT I use tika-app-1.9.jar as library file. It is 45MB. If I remove it and instead use tika-parsers-1.10.jar and tika-core-1.10.jar as library files,

tinymce build script to compress all js files

三世轮回 提交于 2019-12-13 02:13:06
问题 I am looking for a way to compress all tinymce js files into one single file. I would like to use ant, yui-compressor and a build script. There seems to exist something like this already: https://github.com/tinymce/tinymce But i have not been able to make it work. Can anybody with experience give me some assistance? 回答1: Solution from the tinymce forum (Spocke): Install Java. Install ant Add ant to environment variable "path" Open a console cd to the tinymce dir and type "ant build_full" 回答2:

Unable to run the demo setup

て烟熏妆下的殇ゞ 提交于 2019-12-13 02:08:55
问题 I have downloaded the Activity 5.10 zip file and then i have downloaded and configured the Apache ANT and i test it and it worked successfully. But i am unable to run the demo file as specified in this link http://activiti.org/userguide/#demo.setup if i type the following using the cmd command line:- C:\activiti-5.10\activiti-5.10\setup>ant demo.start I will get the following error:- 'ant' is not recognized as an internal or external command, operable program or batch file. Can anyone help me

Xerces-for-Android NoClassDefFoundError When Using Jar Instead of Source Code

£可爱£侵袭症+ 提交于 2019-12-13 01:26:25
问题 I'm working with Xerces-for-Android: https://code.google.com/p/xerces-for-android/ If I copy the source code into a simple test project (java project, not android project), I can run my xml validator tests without any issues. When I make a jar from the source files then use that in my class path instead of the source, I get NoClassDefFoundError despite the files being present in the jar. Below is the error message: java.lang.ExceptionInInitializerError at mf.org.apache.xerces.impl.dv

Find all directories in which a file exists, such that the file contains a search string

独自空忆成欢 提交于 2019-12-13 01:23:57
问题 I have a directory tree that I need to process as follows: I have a certain file that needs to be copied to a select few sub directories A sub directory of interest is one that contains a file within which I can regex match a known search string Ideally I would like to: Perform a regex match across all files within a directory If the regex matches, copy the file to that directory The trouble is that I am quite new to ANT and I'm having difficulties finding my way around. I can't find any

How to use environment variable with IIS user

半世苍凉 提交于 2019-12-13 00:51:23
问题 I have a WCF service that runs a .bat file. It works on my local system, but I have a problem with running it on the server (Windows server 2012 r2). I've defined the ANT_HOME variable to server's environment variables and I've added %ANT_HOME%\bin to Path variable. When I write " ant " to CMD on the server it works! But when I call the wcf service from somewhere, it doesn't work. I found the following error in the log files: 'ant' is not recognized as an internal or external command,

ant command showing error while execution : resource axis-tasks.properties could not be found

 ̄綄美尐妖づ 提交于 2019-12-13 00:17:19
问题 Problem in running ant showing error Could not load definitions from resource axis-tasks.properties. It could not be found : Here is the snapshot of build.xml on which the problem occurs <target name="axis" depends="prepare"> <taskdef resource="axis-tasks.properties"/> <axis-wsdl2java url="${webconsole.base}/src/myservice.wsdl" output="${axis.output}"> <mapping namespace="urn:myservice" package="com.company.service" /> <mapping namespace="http://webserviceurl.com" package="com.company.service

How do i pass parameters from Jenkins to Ant scripts?

萝らか妹 提交于 2019-12-12 22:06:46
问题 For some GUI testing I'm creating a Jenkins task for each GUI module to be tested. Once created I'm using Ant to build these tests, but I'm not aware of how to actually pass parameters from Jenkins to Ant build file? Basically how do I do variable substitution in Ant? I'm using the Sahi framework to test GUI components, so the flow goes like this... Jenkins → Ant build script → Sahi file to execute Can anyone please take a look at it? 回答1: "Using ant -Dname=value lets you define values for