Martin, I don't know the GoraCompiler at all. Again, I was just guessing what he might need to do :) Lewis, Can you provide either a doc link or some of the command line params that you need? On Sun, 2 Dec 2012, Martin Gainty wrote: > > MG>scott do you know the default folder delimiter GoraCompiler expectsMG>if lewis implements the arg element with space delimiter in his line attribute as inMG>MG>can we assume GoraCompiler should implement space delimiter for folders instead of colon (:)> Date: Sun, 2 Dec 2012 12:43:05 -0500 >> From: sfloess@nc.rr.com >> To: lewis.mcgibbney@gmail.com >> CC: user@ant.apache.org >> Subject: Re: Correct configuration for reading a list into a Java class >> >> >> I don't know the GoraCompiler nor any of its command line arguments... >> >> But have you tried the java sub element? I don't know if it >> will help you but this may work: >> >> >> >> >> >> >> I did a minor bit of googling - but didn't quickly find the command line >> options or I may have had a firmer "I think this will work" statement :) >> >> >> >> On Sat, 1 Dec 2012, Lewis John Mcgibbney wrote: >> >>> Hi All, >>> >>> I've done a fiar bit of digging on this one on user@ archives and >>> there have been various threads on the topic. I understand that the >>> solution to reading in multiple files an executing them with the java >>> element is a custom solution. The problem is pretty simple. I have a >>> directory of avro schemas which I would like to pass to a GoraCompiler >>> class to be compiled. >>> >>> So far I've got >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> description="> generate the Java files from the Gora schema(s) in >>> src/gora/*.avsc"> >>> >>> >>> >>> >>> >>> >>> >>> When I execute I get >>> >>> generate-gora-src: >>> [java] 12/12/01 16:22:09 INFO compiler.GoraCompiler: Compiling >>> schema file: /home/lewismc/ASF/2.x/src/gora/host.avsc:/home/lewismc/ASF/2.x/src/gora/webpage.avsc >>> to: ./src/java >>> [java] Exception in thread "main" java.io.FileNotFoundException: >>> /home/lewismc/ASF/2.x/src/gora/host.avsc:/home/lewismc/ASF/2.x/src/gora/webpage.avsc >>> (No such file or directory) >>> [java] at java.io.FileInputStream.open(Native Method) >>> [java] at java.io.FileInputStream.(FileInputStream.java:120) >>> [java] at >>> org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:325) >>> [java] at org.apache.avro.Schema.parse(Schema.java:794) >>> [java] at >>> org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:87) >>> [java] at >>> org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:509) >>> [java] Java Result: 1 >>> >>> BUILD SUCCESSFUL >>> Total time: 6 seconds >>> >>> If someone could please help me to understand how to separate the >>> files into the required File [] list then that would be great. I >>> should make it clear that I've discovered pathconvert's pathsep >>> attribute but it still seems to be a string being passed as oppose to >>> a separated list of files. >>> I should also note that making the target accept a single explicit >>> file works perfectly, so I know my configuration is in the way I'm >>> constructing the mappings. >>> >>> Thanks very much in advance >>> >>> Lewis >>> >>> >>> >>> >>> -- >>> Lewis >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: user-help@ant.apache.org >>> >>> >> >> Scot P. Floess RHCT (Certificate Number 605010084735240) >> Chief Architect FlossWare http://sourceforge.net/projects/flossware >> http://flossware.sourceforge.net >> https://github.com/organizations/FlossWare >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> > Scot P. Floess RHCT (Certificate Number 605010084735240) Chief Architect FlossWare http://sourceforge.net/projects/flossware http://flossware.sourceforge.net https://github.com/organizations/FlossWare --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org