I am very weak with ant but bundle my classes this way, so that my aar
file contains all of the classes from all of the a-e services that I
ship and the servcies.xml file in com/resources. As I build more
servcies I'll probably want to make my include name a bit less specific.
Since the generate.service depends on generate.wsdl phase, if the
classes are out of date then I will run the wsdl generation first. My
dir structure is basically:
WebServcies/src/com/.../ws/a
WebServcies/src/com/.../ws/b
WebServcies/src/com/.../ws/c
Etc
Where a-e are different services that are grouped under my application
group.
<target name="generate.service" depends="generate.wsdl">
<!--aar them up -->
<jar destfile="../war/lib/MyService.aar">
<fileset dir=".">
<include name="**/ws/a/*.class" />
<include name="**/ws/b/*.class" />
<include name="**/ws/c/*.class" />
<include name="**/ws/d/*.class" />
<include name="**/ws/e/*.class" />
</fileset>
<fileset dir="com/resources">
<include name="**/*.xml" />
</fileset>
</jar>
</target>
I will not migrate to Eclipse exclusively because we have a lot of
software (Java and C++) ... a build can take between 5-10 hours and is
usually done overnight. However all of our java code directories
support eclipse so when the build is done we have a 'parallel' build for
eclipse development/debugging but recompiling for deployment is done via
the legacy makefiles/ant and Eclipse does a parallel recompile into an
eclipse only area. The Eclipse build/rebuild is significatly faster
than the overnight full C++/Java initial build.
Jon
-----Original Message-----
From: Andrew Clegg [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2008 10:36 AM
To: [email protected]
Subject: Re: Multiple services from one WSDL... advice?
Hi Jon, thanks for the tips. I've stayed on-list for the benefit of
future searchers...
2008/6/20 Willard, Jonathan <[EMAIL PROTECTED]>:
> I am building multiple services that get bundled into one .aar file.
I
> have a servcies.xml file that uses this structure
>
> <serviceGroup>
> <service name=...
> </service>
> <service name=...
> </service>
> </serviceGroup>
It's good to know someone else is doing something similar. How do you
bundle several services into a single aar? Could you post an ant or
makefile example? I wasn't even sure if this was possible from my
(admittedly brief) docs search.
I've got my setup working a bit like this, but with a separate
resources folder and services.xml for each. It would be nice to be
able to package up all three services, plus the types derived from the
shared XML Schema which are in a different location, so I can deploy
them to the server together.
> And a build system using legacy makefiles and ant to build each
service
> separately. I have directory that contains the services, each in a
> separate package and a directory that contains the test clients, each
in
> a separate package. This works well for me. I can compile all the
> services using java2wsdl and then compile all the clients using
> wsdl2java. I use eclipse too and all the services are in one project
> but the compiling is all done with the legacy makefiles/ant system on
> the command line / cygwin shell. The only draw back to this is that
> sometimes I have to refresh Eclipse to see the stub changes.
Have you considered migrating the make bits into ant, and then kicking
them off from Eclipse as custom project builders? That's what I'm
aiming for when I get the manual build process working happily.
Cheers,
Andrew.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]