Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Needed to adjust service suites for new jar directory layout
Browse files Browse the repository at this point in the history
  • Loading branch information
timf committed Jun 24, 2011
1 parent 6837e43 commit 65f351f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .idea-modules/service-suites/tests-common.iml
Expand Up @@ -11,6 +11,7 @@
<orderEntry type="module" module-name="workspace-service" exported="" /> <orderEntry type="module" module-name="workspace-service" exported="" />
<orderEntry type="library" exported="" name="test-libs" level="project" /> <orderEntry type="library" exported="" name="test-libs" level="project" />
<orderEntry type="library" exported="" name="lib-workspaceservice" level="project" /> <orderEntry type="library" exported="" name="lib-workspaceservice" level="project" />
<orderEntry type="library" exported="" name="lib-services" level="project" />
</component> </component>
</module> </module>


1 change: 1 addition & 0 deletions service/service/java/tests/suites/build.properties
Expand Up @@ -5,6 +5,7 @@ nimbus.st.service.main.builddir=${nimbus.st.basedir}/service/service/java/source
nimbus.st.metadata.builddir=${nimbus.st.basedir}/metadata/java/source nimbus.st.metadata.builddir=${nimbus.st.basedir}/metadata/java/source
nimbus.st.authzdb.builddir=${nimbus.st.basedir}/authzdb nimbus.st.authzdb.builddir=${nimbus.st.basedir}/authzdb
nimbus.st.main.lib.dir=${nimbus.st.basedir}/lib/services nimbus.st.main.lib.dir=${nimbus.st.basedir}/lib/services
nimbus.st.workspaceservice.lib.dir=${nimbus.st.basedir}/lib/workspaceservice
nimbus.st.test.lib.dir=${nimbus.st.basedir}/lib/test nimbus.st.test.lib.dir=${nimbus.st.basedir}/lib/test
nimbus.st.service.api.dist.dir=${nimbus.st.basedir}/service-api/java/source/dist nimbus.st.service.api.dist.dir=${nimbus.st.basedir}/service-api/java/source/dist
nimbus.st.service.main.dist.dir=${nimbus.st.basedir}/service/service/java/source/dist nimbus.st.service.main.dist.dir=${nimbus.st.basedir}/service/service/java/source/dist
Expand Down
3 changes: 3 additions & 0 deletions service/service/java/tests/suites/build.xml
Expand Up @@ -17,6 +17,9 @@
<fileset dir="${nimbus.st.main.lib.dir}"> <fileset dir="${nimbus.st.main.lib.dir}">
<include name="*.jar"/> <include name="*.jar"/>
</fileset> </fileset>
<fileset dir="${nimbus.st.workspaceservice.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${nimbus.st.test.lib.dir}"> <fileset dir="${nimbus.st.test.lib.dir}">
<include name="*.jar"/> <include name="*.jar"/>
</fileset> </fileset>
Expand Down
Expand Up @@ -466,19 +466,19 @@ protected void setUpShareDir(String nimbusHome) throws Exception {
String libdir = null; String libdir = null;
String apath = nh.getAbsolutePath(); String apath = nh.getAbsolutePath();
while (apath != null) { while (apath != null) {
final File candidate = candidate(apath, "lib/services/"); final File candidate = candidate(apath, "lib/workspaceservice/");
if (candidate != null) { if (candidate != null) {
libdir = candidate.getAbsolutePath(); libdir = candidate.getAbsolutePath();
} }
apath = new File(apath).getParent(); apath = new File(apath).getParent();
} }
if (libdir == null) { if (libdir == null) {
throw new Exception("could not determine proper lib/services directory, " + throw new Exception("could not determine proper lib/workspaceservice directory, " +
"is your nimbus home somewhere outside of the repository"); "is your nimbus home somewhere outside of the repository");
} }
final File sanityCheck = new File(libdir, "derby.jar"); final File sanityCheck = new File(libdir, "derby.jar");
if (!sanityCheck.exists()) { if (!sanityCheck.exists()) {
throw new Exception("could not determine proper lib/services directory, " + throw new Exception("could not determine proper lib/workspaceservice directory, " +
"is your nimbus home somewhere outside of the repository (derby.jar not found)"); "is your nimbus home somewhere outside of the repository (derby.jar not found)");
} }
conf.setProperty("derby.classpath.dir.prop", libdir); conf.setProperty("derby.classpath.dir.prop", libdir);
Expand Down

0 comments on commit 65f351f

Please sign in to comment.