You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/01/16 11:51:25 UTC
svn commit: r612413 -
/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java
Author: gnodet
Date: Wed Jan 16 02:51:19 2008
New Revision: 612413
URL: http://svn.apache.org/viewvc?rev=612413&view=rev
Log:
Avoid generating test files in the root directory, rather use the target/ one
Modified:
servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java
Modified: servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java?rev=612413&r1=612412&r2=612413&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java Wed Jan 16 02:51:19 2008
@@ -16,15 +16,25 @@
*/
package org.apache.servicemix.jbi;
+import java.io.File;
import java.util.Properties;
import javax.jbi.component.Component;
-import org.apache.servicemix.jbi.deployer.ServiceAssembly;
import org.apache.servicemix.nmr.api.NMR;
import org.apache.servicemix.runtime.testing.support.AbstractIntegrationTest;
public class IntegrationTest extends AbstractIntegrationTest {
+
+ static {
+ File f = new File("target/smx4");
+ f.mkdirs();
+ System.setProperty("servicemix.home", f.getAbsolutePath());
+ System.setProperty("servicemix.base", f.getAbsolutePath());
+ System.setProperty("org.apache.servicemix.filemonitor.configDir", new File(f, "etc").getAbsolutePath());
+ System.setProperty("org.apache.servicemix.filemonitor.monitorDir", new File(f, "deploy").getAbsolutePath());
+ System.setProperty("org.apache.servicemix.filemonitor.generatedJarDir", new File(f, "data/generate-bundles").getAbsolutePath());
+ }
private Properties dependencies;