Skip to Content.
Sympa Menu

mace-opensaml-users - Re: java-xmltooling ANT build and JUnit failures

Subject: OpenSAML user discussion

List archive

Re: java-xmltooling ANT build and JUnit failures


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: java-xmltooling ANT build and JUnit failures
  • Date: Wed, 13 Feb 2008 20:42:19 -0500



Clifford Johnson wrote:

To perform a "production" build for java-openws, I presently "package"
java-xmltooling and copy the xmltooling jar (and some other required
jars) into the lib directory in java-openws and perform a "package" on
java-openws. This seems reasonable to me since java-openws is dependent
on java-xmltooling -- you'd have to do the same process for any project
dependency you are building. (I follow a similar process for building
java-opensaml2.)

For a JUnit build, a similar "copy dependency build artifacts" is not
really available (though I might try an ".\ant test package" and see if
it produces a jar that contains the production *and* test classes and
copy the jar to the java-openws build-lib directory -- but I can't say
that I really like that idea).



For the moment, I'm copying the SecurityTestHelper class into each of
java-openws and java-opensaml2 and that seems to get me by. But having
an inter-project test dependency is a tad awkward -- you might consider
promoting the class to the java-xmltooling src tree. Ideally, one
should be able to perform ANT build cycles on java-openws and
java-opensaml2 without having the test sources for java-xmltooling
available.


Ok, yes, after looking at it, I agree. I have moved the SecurityTestHelper up to the main src tree, in the same package.


Since I wrote the above, I discovered some other dependencies in
java-opensaml2 on the test tree in java-xmltooling. Like the
SecurityTestHelper dependency above, I'm handling this by copying the
org.opensaml.xml.mock package and
org.opensaml.xml.StaticKeyInfoCredentialResolver class to the
java-opensaml2 test tree.



These dependencies were old cruft and/or unnecessary, so I just eliminated the dependencies on them entirely from openws and opensaml2.



I think that eliminates all the cross project dependencies for stuff in the test tress.




Archive powered by MHonArc 2.6.16.

Top of Page