Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added jetty plugin so we can test the root server war file.
- Loading branch information
Showing
5 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
db.jndi.name=java:/jdbc/SymmetricDS | ||
db.jndi.name=java:comp/env/jdbc/SymmetricDS | ||
engine.name=ROOT | ||
my.url= | ||
group.id=ROOT | ||
external.id=00000 | ||
auto.config.registration.svr.sql.script=/test-root-init.sql | ||
start.pull.job=false | ||
start.push.job=false | ||
start.push.job=false |
14 changes: 14 additions & 0 deletions
14
symmetricds-root-svr/src/main/webapp/WEB-INF/jetty-env.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | ||
|
||
<Configure class="org.mortbay.jetty.webapp.WebAppContext"> | ||
<New id="symmetricDS" class="org.mortbay.jetty.plus.naming.Resource"> | ||
<Arg>jdbc/SymmetricDS</Arg> | ||
<Arg> | ||
<New class="org.apache.derby.jdbc.EmbeddedDataSource"> | ||
<Set name="DatabaseName">target/derby/testdb</Set> | ||
<Set name="createDatabase">create</Set> | ||
</New> | ||
</Arg> | ||
</New> | ||
</Configure> |
12 changes: 12 additions & 0 deletions
12
symmetricds-root-svr/src/shortcuts/symmetricds-root-svr - jetty.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType"> | ||
<stringAttribute key="bad_container_name" value="\symmetric-we\src\shortcuts"/> | ||
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <launchConfigurationWorkingSet editPageId="org.eclipse.ui.resourceWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="working set" name="working set"> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/symmetricds-root-svr" type="4"/> </launchConfigurationWorkingSet>}"/> | ||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> | ||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> | ||
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/> | ||
</listAttribute> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${system_path:/mvn.bat}"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-Dlog4j.configuration=file:./src/test/resources/log4j.xml -Dmaven.test.skip=true package jetty:run-exploded"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/symmetricds-root-svr}"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
|
||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> | ||
|
||
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d %-5p [%c] [%t] %m%n" /> | ||
</layout> | ||
</appender> | ||
|
||
<category name="org"> | ||
<priority value="WARN" /> | ||
</category> | ||
|
||
<category name="org.jumpmind"> | ||
<priority value="INFO" /> | ||
</category> | ||
|
||
<category name="org.springframework"> | ||
<priority value="ERROR" /> | ||
</category> | ||
|
||
<!-- Enable this to see extract output | ||
<category name="org.jumpmind.symmetric.extract.csv"> | ||
<priority value="DEBUG" /> | ||
</category> | ||
--> | ||
|
||
<root> | ||
<priority value="INFO" /> | ||
<appender-ref ref="CONSOLE" /> | ||
</root> | ||
|
||
</log4j:configuration> |