RE: How do you compile HTML to Java class with XMLC?
"Steve Swett" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Organization | Best Computer Systems, Inc. |
| Message-ID | <00e101c362a3$3666bd80$c900a8c0@Satellite2430> |
Our company is in the process of reviewing 4 web app frameworks. It's amazing to me that it is taking hours trying to figure out how to compile a single HTML file into a single class file with XMLC on a Windows machine. Is there a way I can use the ant xmlc taskdef to compile a brand new little test case html file into my own package/path? For example, I stuck the HTML in: c:\barracuda\src\swett It would be great if it would compile the html into: c:\barracuda\WEB-INF\classes\swett It would also be great if I could just override an ant build.xml file property to do the compilation. Such as, with current directory at c:\barracuda\src: ant -Dsrc.package.path=swett xmlc For a company just getting into web apps, but having already reviewed two other frameworks, it would be nice to have an easy way to run XMLC. Is there a whole different way to go about it, instead of through an ant task? For example, is there a way to just do a command like this: xmlc mypage.html and have the package/class end up in the same folder as the html? Or should I be trying to run ant's "xmlc.sub" task to do a quick little compile? Is there such a thing as a quick little compile? Any help you can provide will be greatly appreciated. Thank you. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Christian Cryder Sent: Thursday, August 14, 2003 3:25 PM To: [email protected] Subject: RE: [Barracuda] How do you compile HTML to Java class with XMLC? > Is in the BUILD.XML file that you indicate which directories to hunt for > HTML files? Yep. I'm attaching a sample build.xml from a typical project that uses Barracuda...you can see how we copy the mockups to a target directory, and then XMLC compiles from that. Look for the mockps.compile target. CHristian ---------------------------------------------- Christian Cryder Internet Architect, ATMReports.com Project Chair, BarracudaMVC - http://barracudamvc.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Steve Swett > Sent: Thursday, August 14, 2003 1:13 PM > To: [email protected] > Subject: RE: [Barracuda] How do you compile HTML to Java class with > XMLC? > > > OK, I see that if I use "ant xmlc" while the current directory is > "c:\Barracuda\src" that it will recompile all HTML files in the > "C:\Barracuda\src\org\enhydra\barracuda\tutorials\xmlc" folder. > > The result is a class file with the org.enhydra... package name. > > It doesn't want to compile the html files if they are in different > directories. If I move my HTML to that directory, it will compile, but > it gives the long package name. > > Is in the BUILD.XML file that you indicate which directories to hunt for > HTML files? > > Thanks. > > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jacob Kjome > Sent: Thursday, August 14, 2003 2:38 PM > To: [email protected] > Subject: Re: [Barracuda] How do you compile HTML to Java class with > XMLC? > > > You should really post a question like this to the XMLC list, but I'll > answer it here anyway. This is configurable via the command line. If > you > use the XMLC taskdef or Barracuda's Localize taskdef (which extends the > XMLC taskdef), then the behavior you want will happen automatically. > Check > out the Ant build files in the examples of XMLC-2.2RC1 release to see > how > to use the XMLC taskdef. > http://forge.objectweb.org/projects/xmlc/ > > I can't quite remember all the command line parameters offhand. I've > used > the Ant tasks for so long that running XMLC directly on the command line > > seems almost foreign to me at this point. > > BTW, xmlc.enhydra.org hasn't been updated in a while. It will be > updated > for the XMLC-2.2 release to point to the objectweb site which is the new > > home of the XMLC CVS code and all downloads. Only the mailing list is > used > at xmlc.enhydra.org currently. > > Jake > > At 02:08 PM 8/14/2003 -0400, you wrote: > > >Is there anything already in the Barracuda package distribution that > can > >be run to compile: > > > > > > > >myTest.html > > > > > > > >to > > > > > > > >myTestHTML.class > > > > > > > > > > > >& or do I just download XMLC from xmlc.enhydra.org, compile the html to > > >myTest.class and then rename the class to myTestHTML.class? > > > > > > > >Thanks. > > > > > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda > > > > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda