3
0
Fork 0

simple split to multi module project

This commit is contained in:
willem.cazander 2010-09-25 18:34:44 +02:00
parent 5c13908f8e
commit 2906c482d1
182 changed files with 396 additions and 589 deletions

View file

@ -1,12 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View file

@ -1,3 +1,12 @@
syntax: regexp
^target$
syntax: glob
# HG .orig files
*.orig
# A hidden file created by the Mac OS X Finder.
.DS_Store
# Ignore target dirs.
target/*
*/target/*

View file

@ -5,11 +5,6 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
@ -24,6 +19,5 @@
<natures>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>

View file

@ -1,121 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="foei-jca" default="deploy" basedir=".././">
<property file="build/build.properties"/>
<path id="classpath">
<fileset dir="${jboss.home}/server/${jboss.server}/lib" includes="*.jar"/>
</path>
<!-- Builds JCA application -->
<target name="build">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" classpathref="classpath"/>
<antcall target="build.${server.name}"/>
<!--
<jar destfile="dd.war">
<zipfileset dir="bin" prefix="WEB-INF/classes" includes="**/web/*.class"/>
<zipfileset dir="web" excludes="WEB-INF/*-web.xml"/>
<zipfileset dir="web" includes="WEB-INF/${server.name}-web.xml"/>
</jar>
-->
</target>
<target name="doBuildBinJar">
<jar destfile="idcanet-foei-bin.jar" basedir="bin" includes="**">
</jar>
</target>
<!-- Packs JBoss version of the resource adapter module -->
<target name="build.jboss">
<jar destfile="foei-ra.rar">
<zipfileset dir="bin" includes="com/idcanet/foei/ee/jca/**/*.class"/>
<zipfileset dir="meta/jboss" prefix="META-INF" includes="ra.xml"/>
</jar>
<jar destfile="bin/foei-ra.jar">
<zipfileset dir="bin" includes="com/idcanet/foei/ee/jca/**/*.class"/>
</jar>
</target>
<!-- Packs Geronimo version of the resource adapter module -->
<target name="build.geronimo">
<jar destfile="bin/foei-ra.jar">
<zipfileset dir="bin" includes="com/idcanet/foei/ee/jca/**/*.class"/>
</jar>
<jar destfile="foei-ra.rar">
<zipfileset dir="bin" includes="foei-ra.jar"/>
<zipfileset dir="meta/geronimo" prefix="META-INF" includes="ra.xml"/>
</jar>
</target>
<!--
Deploys (or redeploys) the application on the currently selected
server
-->
<target name="deploy" depends="build,doBuildBinJar">
<antcall target="deploy.${server.name}"/>
</target>
<!--
Deploys (or redeploys) the application on JBoss. If the server is
started the application will be installed and started on the fly.
The JBoss version of the application must be previously built
and located in the current folder.
-->
<target name="deploy.jboss">
<copy todir="${jboss.home}/server/${jboss.server}/deploy" file="meta/jboss/foei-ds.xml"/>
<copy todir="${jboss.home}/server/${jboss.server}/deploy" file="foei-ra.rar"/>
<copy todir="${jboss.home}/server/${jboss.server}/lib" file="idcanet-foei-bin.jar"/>
<!-- <copy todir="${jboss.home}/server/${jboss.server}/deploy" file="jca.war"/> -->
</target>
<!--
Deploys (or redeploys) the application on Geronimo. The server
should be started.
The Geronimo version of the application must be previously built
and located in the current folder.
-->
<target name="deploy.geronimo">
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="undeploy"/>
<arg value="com/ibm/j2g/jca.war"/>
</java>
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="undeploy"/>
<arg value="com/ibm/j2g/jca.rar"/>
</java>
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="deploy"/>
<arg value="meta/geronimo/jca-plan.xml"/>
<arg value="jca.rar"/>
</java>
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="deploy"/>
<arg value="jca.war"/>
</java>
</target>
</project>

View file

@ -1,16 +0,0 @@
# Name of the server to build the application for:
server.name = jboss
# Home directory of JBoss 4.0.2 J2ee Application Server and name of the server
# instance on which the application should be deployed (this instance should be
# either a copy of the default JBoss server or the default server itself because
# its libs are also used for building the source code):
jboss.home = /home/willemc/devv/jboss-4.2.1.GA
jboss.server = default
# Home directory of Geronimo 1.0M5 J2ee Application Server and its administrator
# credentials:
geronimo.home = /home/willemc/devv/apache-geronimo
geronimo.user = system
geronimo.password = manager

View file

@ -1,23 +0,0 @@
Copyright 2004-2006 IDCA. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED BY IDCA AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL IDCA OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and
should not be interpreted as representing official policies, either expressed or implied, of IDCA.

View file

@ -1,2 +0,0 @@
Nothing to read ?? --> code java

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

23
foei-components/.project Normal file
View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>foei-components</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,6 @@
#Sat Sep 25 01:02:55 CEST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5

View file

@ -0,0 +1,9 @@
#Sat Sep 25 01:02:54 CEST 2010
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
includeModules=false
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1

20
foei-components/pom.xml Normal file
View file

@ -0,0 +1,20 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.idcanet.foei</groupId>
<artifactId>foei-base</artifactId>
<version>0.8-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.foei</groupId>
<artifactId>foei-components</artifactId>
<version>0.8-SNAPSHOT</version>
<name>foei-components</name>
<description>foei-component</description>
<dependencies>
<dependency>
<groupId>com.idcanet.foei</groupId>
<artifactId>foei-core</artifactId>
<version>0.8-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View file

10
foei-core/.classpath Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

23
foei-core/.project Normal file
View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>foei-core</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,6 @@
#Sat Sep 25 01:01:17 CEST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5

View file

@ -0,0 +1,9 @@
#Sat Sep 25 01:01:16 CEST 2010
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
includeModules=false
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1

20
foei-core/pom.xml Normal file
View file

@ -0,0 +1,20 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.idcanet.foei</groupId>
<artifactId>foei-base</artifactId>
<version>0.8-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.foei</groupId>
<artifactId>foei-core</artifactId>
<version>0.8-SNAPSHOT</version>
<name>foei-core</name>
<description>foei-core</description>
<dependencies>
<dependency>
<groupId>com.idcanet.x4o</groupId>
<artifactId>x4o-core</artifactId>
<version>${x4o-core.version}</version>
</dependency>
</dependencies>
</project>

View file

@ -47,7 +47,6 @@ public class BindAttributeHandler extends AbstractElementAttributeHandler {
/**
* @see com.idca.foei.xml.x2o.eld.GlobalParameterHandler#doConfigElement(java.lang.Object, java.lang.String)
*/
@Override
public void doConfigElement(Element element) throws ElementConfiguratorException {
String parameterValue = element.getAttributes().get(getAttributeName());
String[] port = parameterValue.split(":");

View file

@ -44,7 +44,6 @@ public class IdAttributeHandler extends AbstractElementAttributeHandler {
/**
* @see com.idca.foei.xml.x2o.eld.GlobalParameterHandler#doConfigElement(java.lang.Object, java.lang.String)
*/
@Override
public void doConfigElement(Element element) throws ElementConfiguratorException {
// add to objext context
String parameterValue = element.getAttributes().get(getAttributeName());

Some files were not shown because too many files have changed in this diff Show more