On Dec 23, 2005, at 4:31 PM, Miguel Arroz wrote:
> Hi!
>
> I'm totally lost here... I have an app made in Eclipse using
> WOLips. Now, I'm trying to install it on a remote server, using
> ant, but with absolutely no sucess. When I "ant build", no classes
> are compiled to the bin directory.
>
> What's happening here?
>
Possibly you are making it too complicated. :-) Eclipse compiles
the Java files. The Ant script creates the application package (aka
bundle). The Ant script does not have a compilation step. If you
are using the Ant Builder (rather than the Incremental Builder), then
you can just copy the .woa directory to the remote server. I never
build on the machine that I am deploying on (no need to do this). If
you are using the Incremental Builder, then you need to run the ant
build target to create the correct .woa to move to the server.
If you want to do a full build from the command line, you will need
to add a compilation target like this:
<target name="compile" depends="setProps">
<wocompile destdir="bin"
debug="${wocompile.debug.flag}"
optimize="${wocompile.optimize.flag}"
deprecation="on">
<src refid="${project.source.path}"/>
<frameworks root="${wo.wosystemroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wosystemroot"/>
</patternset>
</frameworks>
<frameworks root="${wo.wolocalroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
</patternset>
</frameworks>
<classpath refid="additional.jars" />
</wocompile>
</target>
Chuck
-- Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointroPractical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects
This archive was generated by hypermail 2.0.0 : Wed Dec 28 2005 - 14:34:30 EST