After I put together an Ant task test case (note that the example on the web page uses the deprecated task class), I discovered that it actually is waiting for something. After it seemed to pause, I just pressed Return, and it printed this out:
Warning: A class name generation conflict has occured between element '/complexType:DocumentRequestType/LoanInformation' and element '/complexType:UpdateBankruptcyStepResponseType/LoanInformation'. Please use a Binding file to solve this problem.Continue anyway [not recommended] (y|n|?) invalid input, expecting 'y', 'n', or '?' So, it paused for input BEFORE printing this message. Despite that problem, it's not really practical to prompt for input like this during a build, especially if you fork the castor process, which makes it impossible to fulfill the prompt. If you ask to print warnings, it should just print warnings and continue on. Now that I know what's going on, I'll file an issue about this. > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 18, 2007 7:22 AM > To: [email protected] > Subject: Re: [castor-user] Omitting "-f" from > SourceGeneratorMain hangs code generation on one particular xsd file > > David, > > can I ask you (again) to create a new issue at > http://jira.codehaus.org/browse/CASTOR, and attach relevant > files in form of a test case (possibly maybe following the > guidelines as provided in the XML HOW-To section). > > Thanks in advance > Werner > > Karr, David wrote: > > Castor 1.1, JDK 1.4.2, Maven 1.0.2. > > > > For some reason, if I omit "-f" from the command line for > > "SourceGeneratorMain", my build hangs during the processing of a > > particular xsd file, right between generating two particular files. > > I've tested this several times, and it is very repeatable. > I've added > > "-verbose", so I can see which file it's generating when it hangs. > > It's not "spinning" (using all cpu), it's just sitting > there doing nothing. > > I'm using Maven 1.0.2, and it prints "[java]" and a > newline, instead > > of "[java] Creating classes for: ...". After that, nothing > happens. > > It doesn't fail, it's just waiting for something. > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

