Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[higgins-dev] ant builds for STS

<resent with non-broken instructions>
 
I switched over the STS projects to use ant as the build system, and changed the classpaths to use libraries specified by the user.  There's still one point of integration I want to smooth out, but for now, here's what you need to do to get the STS components to build:
 
1) Use the attached .psf file to get the projects (it will get you the sts plus idas components)
2) You need one or more directories in which to place dependency jar files.  Either follow my example, or put them all in one shared directory, or split them up however you want:
 
depends.sts.binding.axis.core
    axiom-api-1.1.1.jar
    axis.jar
    commons-logging-1.0.4.jar
    jaxrpc.jar
    saaj.jar

depends.sts.binding.axis.service
    axiom-api-1.1.1.jar
    axis.jar
    commons-logging-1.0.4.jar
    jaxrpc.jar
    saaj.jar
 
depends.sts.binding.axis.transfer
    axis.jar
    commons-logging-1.0.4.jar
    jaxrpc.jar
    saaj.jar
 
depends.sts.binding.axis.types
    axis.jar
    jaxrpc.jar
 
depends.sts.core
    axiom-api-1.1.1.jar
    axis.jar
    commons-logging-1.0.4.jar
    jaxrpc.jar
    saaj.jar
    servlet-api.jar
    stax-api-1.0.1.jar
    xercesImpl.jar
    xmlsec-1.3.0.jar
 
depends.sts.extension.samltoken
    axiom-api-1.1.1.jar
    commons-logging-1.0.4.jar
    xmlsec-1.3.0.jar
 
depends.sts.extension.usernametoken
    axiom-api-1.1.1.jar
    commons-logging-1.0.4.jar
    xmlsec-1.3.0.jar
 
depends.sts.informationcardgenerator
    <nothing here yet>
 
If you add these directories at the root of your Eclipse workspace directory it will save you a lot of time later.  If you at least put them all in the same place it will save a little time later.
 
3) In Eclipse, do this: Window, Preferences..., Java, Build Path, Classpath Variables.
3.1) For each name below, press New, enter the name, then enter the path to the corresponding dependency directory you built above
STS_BINDING_AXIS_CORE_DEPENDS  (My path is C:/Data/Higgins/depends.sts.binding.axis.core)
STS_BINDING_AXIS_SERVICE_DEPENDS (My path is C:/Data/Higgins/depends.sts.binding.axis.service)
STS_BINDING_AXIS_TRANSFER_DEPENDS (My path is C:/Data/Higgins/depends.sts.binding.axis.transfer)
STS_BINDING_AXIS_TYPES_DEPENDS (My path is C:/Data/Higgins/depends.sts.binding.axis.types)
STS_CORE_DEPENDS (My path is C:/Data/Higgins/depends.sts.core)
STS_EXTENSION_SAML_TOKEN_DEPENDS (My path is C:/Data/Higgins/depends.sts.extension.samltoken)
STS_EXTENSION_USERNAME_TOKEN_DEPENDS (My path is C:/Data/Higgins/depends.sts.extension.usernametoken)
STS_INFORMATION_CARD_GENERATOR_DEPENDS (My path is C:/Data/Higgins/depends.sts.informationcardgenerator)
 
4) <here's the redundant part>  In Eclipse, do this: Window, Preferences..., Ant, Runtime, Properties (tab)
4.1) For each name below, press Add Property, enter the name, then enter the path to the corresponding dependency directory you built above.  Note, you can use a variable here like I did.
sts.binding.axis.core.depends (My path is ${workspace_loc}/depends.sts.binding.axis.core/
sts.binding.axis.service.depends (My path is ${workspace_loc}/depends.sts.binding.axis.service/
sts.binding.axis.transfer.depends (My path is ${workspace_loc}/depends.sts.binding.axis.transfer/
sts.binding.axis.types.depends (My path is ${workspace_loc}/depends.sts.binding.axis.types/
sts.core.depends (My path is ${workspace_loc}/depends.sts.core/
sts.extension.samltoken.depends (My path is ${workspace_loc}/depends.sts.extension.samltoken/
sts.extension.usernametoken.depends (My path is ${workspace_loc}/depends.sts.extension.usernametoken/
sts.informationcardgenerator.depends (My path is ${workspace_loc}/depends.sts.informationcardgenerator/
 
 
That should be it unless I forgot something.  I'm sure there are tricks to reduce the redundancy, I'll keep poking around.
 
Building the projects will cause the ant scripts to be used.  To build manually or pick the target you want to execute, add the ant scripts like this:
6) In Eclipse, do this: Window, Show View, Ant.  An Ant Browser appears. Right-Click, Add Buildfiles..., browse to the buildfile (build.xml) you want to add and select it.  You can double click the build file to build the default target, or expand it to see all the targets available
 
Note that the STS Core build file has a jarAllSTS -- this will force all the jars to be built.  I think I'll add a warAllSTS once I get a couple more war targets done.
 
Jim

Attachment: sts_idas.psf
Description: Binary data


Back to the top