|
Felipe Leme made changes - 24/Oct/05 02:02 PM
You read in my mind Felipe. Hi Arnauld, Well, at least after months of inactivity I contributed with something useful Now we just need to figure it out an elegant way to bypass those <i:ask> questions... – Felipe Arnauld, I have createad a class that sets the System.in to always return enter: package org.apache.maven.genapp.testing; import java.io.BufferedInputStream; public class NewlinerInputStream extends BufferedInputStream { private static final InputStream SYSTEM_IN = System.in; public static void replaceSystemIn() { System.setIn( THE_INSTANCE ); } public NewlinerInputStream(InputStream in) { super(in); } public synchronized int read(byte[] b, int off, int len) throws IOException { b[0] = '\n'; return 1; } } And then on maven.xml I used: <goal name="test-genapp" prereqs="clean,java:compile"> But I got a ClassNotFoundException: BUILD FAILED Do you know how should I set Jelly to use that class (which is under src/main on the plugin - I have also set the <build> on the testcase's POM to that value)? Thks, – Felipe Hi Felipe. Did you see that you could bypass the <i:ask> with something like : Hi again, I tried to set the properties to skip the prompt, but it didn't work, I mean, not all the questions were skipped; I will try again anyway. Regarding the invokeStatic, I will take a look on the xdocs plugin. What I know works is to access a class that is included in a dependency; if that's the case, I could move that class to the main plugin (in fact, doing so would allow to reuse it for other genapp test cases). – Felipe |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fixed.
.
PS: I added a test case, although the test case interactes with the user (which is bad