ant

How to redefine QuickFix classes for custom groups?

爱⌒轻易说出口 提交于 2019-12-11 09:18:02
问题 I am using QuickFix with Python to connect with an idiosyncratic data provider. They have defined a new repeating group NoChartData , which I cannot read because the way I define a group in QuickFix is, for example, group = fix42.MarketDataIncrementalRefresh().NoMDEntries() . When I replace NoMDEntries() with NoChartData() I get an attribute error because NoChartData() does not exist. I've got some vague idea that I need to rebuild the QuickFix classes, which I read about here: http:/

Dynamic property names in ant

时间秒杀一切 提交于 2019-12-11 08:54:36
问题 I am reading a file in ant and loading the properties through loadproperties. I am interested in using the value of a specific property, whose name is not known. I know that it follows a pattern because that is how I load the property. I can echoproperties and see that it is being loaded. But I dont know how to access its value, given that its name is actually a pattern rather that hardcoded. How can I access this property's value to do some processing. I hope this is clear. Please ask if I

How to setup multiple fitnesse suites in pom file using maven-antrun-plugin ? and how to call the specific suite run among the configured suits?

耗尽温柔 提交于 2019-12-11 08:44:13
问题 I am able to run the FitNesse suite from maven build with the following setup. <properties> <fitnesse.version>20160618</fitnesse.version> </properties> <dependencies> <dependency> <groupId>org.fitnesse</groupId> <artifactId>fitnesse</artifactId> <version>${fitnesse.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.fitnesse.plugins</groupId> <artifactId>maven-classpath-plugin</artifactId> <version>1.6</version> <scope>runtime</scope> </dependency> </dependencies

Get directories with modified files with Ant

一曲冷凌霜 提交于 2019-12-11 08:36:03
问题 I need to process a directory if it has at least one modified file in it. I wrote a block that reduces a fileset to a unique list of the directories that contain those files, but I think this would be easier if there was a way to do this without the script. Is there a way? 回答1: Tricky to do this with core ANT. Here's an example using an embedded groovy script: <project name="demo" default="process-modified-dirs"> <path id="build.path"> <pathelement location="/path/to/groovy-all/jar/groovy-all

mq fte and ant script

这一生的挚爱 提交于 2019-12-11 08:30:04
问题 Can we use globmapper inside "presrc" or "postsrc" call? If we can, how to use? 回答1: The "presrc" or "postsrc" calls can run any valid Ant script so the short answer is "yes". Hopefully, someone will respond with a sample code to provide the longer answer. :-) 回答2: Sample for reference: <fte:filemove src="${source.agent}@${source.qmgr}" dst="${destination.agent}@${destination.qmgr}" rcproperty="copy.result"> <fte:presrc command="antfile.xml" type="antscript" retryCount="2" retryWait="30"

How can a waitfor task ignore SSL certificate issues?

半腔热情 提交于 2019-12-11 07:58:56
问题 The Ant snippet below works well in my local environment, considering my app is running on localhost: <waitfor maxwait="120" maxwaitunit="second" checkevery="1"> <and> <http url="https://localhost:${env.https.port}/${env.context.path}/${url}"/> </and> </waitfor> But it does not work on a linux test server. It waits 2 minutes even if the application is running on localhost. I verify the created url is valid using an Ant echo task and by running "curl" for it on the server. On the server when I

Concatenate data from two columns of a CSV file using Ant

隐身守侯 提交于 2019-12-11 07:57:34
问题 Is there a way to create a new column in a csv file which includes the concatenation of two other columns joined with a "-" - Using Ant? example: customer,deal,NEWFIELD 200000042,23,200000042-23 200000042,34,200000042-34 200000042,35,200000042-35 200000042,65,200000042-65 回答1: Would it be simpler to embedd a scripting language like Groovy? Example ├── build.xml ├── src │ └── file1.csv └── target └── file1.csv src/file1.csv customer,deal 200000042,23 200000042,34 200000042,35 200000042,65

copy in ANT throws java.io.FileNotFoundException

别来无恙 提交于 2019-12-11 07:49:47
问题 I am using ANT task Copy to copy a zip file from one share to another <copy file="\\server_share\nightly\xyz08022012.zip" todir="Z:\output\Nightly"/> when this gets executed, I am getting the below exception Failed to copy \server_share\nightly\xyz08022012.zip to Z:\output\Nightly\xyz08022012.zip due to java.io.FileNotFoundException Z:\output\Nightly\xyz08022012.zip (The system cannot find the path specified.)` When I change the Z:\output\Nightly to C:\temp , the copy works Z:\ points to a

Ant build consoles get clobbered by dependent projects in Eclipse

折月煮酒 提交于 2019-12-11 07:47:39
问题 I have a set of dependent projects in Eclipse, each with its own Ant build script. If I make a change in multiple projects, then select "Build All" (Ctrl+B), each Ant build is invoked in the correct order. But if there is an error in one project, Eclipse still tries to build the other projects also, and in the process clobbers the Ant console so that the build errors are no longer visible. This wouldn't be quite so annoying if I could open up the offending project and select "Build Project",

Hybris - B2C and B2B as different modules in the same project

安稳与你 提交于 2019-12-11 07:45:54
问题 I need to have 2 accelerators, B2C and B2B, in the same project, both working like a separate module with different webroot. Is that possible ? I have already working B2C accelerator with custom extensions in one module. What I'm trying to achieve is to create another module (used for B2B) that will have same capabilities to use custom extensions and have different storefront on different URL. I tried creating new customized B2B accelerator following this SAP tutorial and I got the correct