|
From: <pka...@us...> - 2009-02-24 14:59:32
|
Revision: 32
http://cse-ip.svn.sourceforge.net/cse-ip/?rev=32&view=rev
Author: pkasprzak
Date: 2009-02-24 14:59:25 +0000 (Tue, 24 Feb 2009)
Log Message:
-----------
Import
Added Paths:
-----------
trunk/sandbox/javaee-se-example/build.xml
trunk/sandbox/javaee-se-example/catalog.xml
trunk/sandbox/javaee-se-example/nbproject/
trunk/sandbox/javaee-se-example/nbproject/build-impl.xml
trunk/sandbox/javaee-se-example/nbproject/genfiles.properties
trunk/sandbox/javaee-se-example/nbproject/project.properties
trunk/sandbox/javaee-se-example/nbproject/project.xml
trunk/sandbox/javaee-se-example/src/
trunk/sandbox/javaee-se-example/src/CourseManager.wsdl
trunk/sandbox/javaee-se-example/src/DataTypes.xsd
Property Changed:
----------------
trunk/sandbox/javaee-se-example/
Property changes on: trunk/sandbox/javaee-se-example
___________________________________________________________________
Added: svn:ignore
+ build
Added: trunk/sandbox/javaee-se-example/build.xml
===================================================================
--- trunk/sandbox/javaee-se-example/build.xml (rev 0)
+++ trunk/sandbox/javaee-se-example/build.xml 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
+ <description>Builds, tests, and runs the project .</description>
+ <import file="nbproject/build-impl.xml"/>
+ <!--
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ -pre-init called before initialization of project properties
+ -post-init called after initialization of project properties
+ -pre-compile called before javac compilation
+ -post-compile called after javac compilation
+ -pre-compile-single called before javac compilation of single file
+ -post-compile-single called after javac compilation of single file
+ -pre-dist called before jar building
+ -post-dist called after jar building
+ -post-clean called after cleaning build products
+
+ Example of pluging an obfuscator after the compilation could look like
+
+ <target name="post-compile">
+ <obfuscate>
+ <fileset dir="${build.classes.dir}"/>
+ </obfuscate>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+ Other way how to customize the build is by overriding existing main targets.
+ The target of interest are:
+
+ init-macrodef-javac defines macro for javac compilation
+ init-macrodef-debug defines macro for class debugging
+ do-dist jar archive building
+ run execution of project
+ javadoc-build javadoc generation
+
+ Example of overriding the target for project execution could look like
+
+ <target name="run" depends="<PROJNAME>-impl.jar">
+ <exec dir="bin" executable="launcher.exe">
+ <arg file="${dist.jar}"/>
+ </exec>
+ </target>
+
+ Notice that overridden target depends on jar target and not only on
+ compile target as regular run target does. Again, for list of available
+ properties which you can use check the target you are overriding in
+ nbproject/build-impl.xml file.
+ -->
+ <target name="-check-netbeans-home">
+ <condition property="no.netbeans.home">
+ <not>
+ <isset property="netbeans.home"/>
+ </not>
+ </condition>
+ </target>
+ <target name="-init-caps" if="no.netbeans.home">
+ <property file="${basedir}/nbproject/private/private.properties"/>
+ <property name="netbeans.home" value="${caps.netbeans.home}/platform8"/>
+ <property name="netbeans.user" value="${caps.netbeans.user}"/>
+ <property name="from.commandline" value="true"/>
+ </target>
+ <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/>
+</project>
Added: trunk/sandbox/javaee-se-example/catalog.xml
===================================================================
--- trunk/sandbox/javaee-se-example/catalog.xml (rev 0)
+++ trunk/sandbox/javaee-se-example/catalog.xml 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
+ <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/>
+</catalog>
Added: trunk/sandbox/javaee-se-example/nbproject/build-impl.xml
===================================================================
--- trunk/sandbox/javaee-se-example/nbproject/build-impl.xml (rev 0)
+++ trunk/sandbox/javaee-se-example/nbproject/build-impl.xml 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *** GENERATED FROM project.xml - DO NOT EDIT ***
+ *** EDIT ../build.xml INSTEAD ***
+
+ For the purpose of easier reading the script
+ is divided into following sections:
+
+ - initialization
+ - dist
+ - cleanup
+-->
+<project name="Common-impl" default="default" basedir="..">
+ <target name="default" depends="dist_se" description="Build whole project."/>
+ <!--
+ ======================
+ INITIALIZATION SECTION
+ ======================
+ -->
+ <target name="-pre-init">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target name="-init-private" depends="-pre-init">
+ <property file="nbproject/private/private.properties"/>
+ </target>
+ <target name="-init-userdir" depends="-pre-init,-init-private">
+ <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
+ </target>
+ <target name="-init-user" depends="-pre-init,-init-private,-init-userdir">
+ <property file="${user.properties.file}"/>
+ </target>
+ <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user">
+ <property file="nbproject/project.properties"/>
+ </target>
+ <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project">
+ <available file="${src.dir}/../retrieved" property="retrieved.exists"/>
+ </target>
+ <target name="-post-init">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init">
+ <fail unless="src.dir">Must set src.dir</fail>
+ <fail unless="build.dir">Must set build.dir</fail>
+ <fail unless="dist.dir">Must set dist.dir</fail>
+ <fail unless="dist.jar">Must set dist.jar</fail>
+ </target>
+ <target name="-init-taskdefs" if="from.commandline">
+ <path id="ant.task.classpath">
+ <pathelement location="${netbeans.home}/../ide9/modules/ext/resolver-1.2.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-apache-xml-resolver.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-project-ant.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-project-libraries.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-projectapi.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-projectuiapi.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-xml-xam.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-xml-schema-model.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-xml-wsdl-model.jar"/>
+ <pathelement location="${netbeans.home}/../ide9/modules/org-netbeans-modules-xml-retriever.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/core/core.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/core/org-openide-filesystems.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/lib/boot.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/lib/org-openide-modules.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/lib/org-openide-util.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/modules/org-openide-dialogs.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/modules/org-openide-loaders.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/modules/org-openide-nodes.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/modules/org-openide-text.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/modules/org-netbeans-modules-masterfs.jar"/>
+ <pathelement location="${netbeans.home}/../platform8/modules/org-netbeans-modules-queries.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui01.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation01.jar"/>
+ <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/>
+ <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/>
+ <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/>
+ <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search01.jar"/>
+ <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/>
+ <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/>
+ <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext01.jar"/>
+ </path>
+ <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask">
+ <classpath refid="ant.task.classpath"/>
+ </taskdef>
+ <taskdef name="generate-catalog-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateCatalogTask">
+ <classpath refid="ant.task.classpath"/>
+ </taskdef>
+ <taskdef name="generate-jbi-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateJbiDescriptorTask">
+ <classpath refid="ant.task.classpath"/>
+ </taskdef>
+ </target>
+ <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/>
+ <!--
+ =====================
+ DIST BUILDING SECTION
+ =====================
+ -->
+ <target name="-pre-dist">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"/>
+ <target name="-do-dist" depends="init,-pre-dist">
+ <mkdir dir="${build.dir}"/>
+ <!--validation-->
+ <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/>
+ <!-- copy all files from project source directory to build directory. -->
+ <copy todir="${build.dir}" preservelastmodified="true">
+ <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/>
+ </copy>
+ <generate-catalog-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/>
+ <generate-jbi-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/>
+ <jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar">
+ <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" excludes="SEDeployment.jar" dir="${basedir}/${build.dir}"/>
+ <fileset dir="${basedir}/${build.dir}">
+ <include name="**/jbi.xml"/>
+ <include name="**/catalog.xml"/>
+ </fileset>
+ </jar>
+ </target>
+ <target name="-post-dist">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/>
+ <!--
+ ===============
+ CLEANUP SECTION
+ ===============
+ -->
+ <target name="-pre-clean">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target name="-deps-clean" depends="init" unless="${no.dependencies}"/>
+ <target name="-do-clean" depends="init,-pre-clean">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.dir}"/>
+ </target>
+ <target name="-post-clean">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/>
+</project>
Added: trunk/sandbox/javaee-se-example/nbproject/genfiles.properties
===================================================================
--- trunk/sandbox/javaee-se-example/nbproject/genfiles.properties (rev 0)
+++ trunk/sandbox/javaee-se-example/nbproject/genfiles.properties 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=56915d2e
+build.xml.script.CRC32=eb920fc1
+build.xml.stylesheet.CRC32=b687c8f7
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=56915d2e
+nbproject/build-impl.xml.script.CRC32=64bba23b
+nbproject/build-impl.xml.stylesheet.CRC32=2a372de0
Added: trunk/sandbox/javaee-se-example/nbproject/project.properties
===================================================================
--- trunk/sandbox/javaee-se-example/nbproject/project.properties (rev 0)
+++ trunk/sandbox/javaee-se-example/nbproject/project.properties 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,28 @@
+allow.build.with.error=false
+bcdeployment.jar=${build.dir}/BCDeployment.jar
+build.classes.dir=${build.dir}/jar
+build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
+build.dir=build
+build.generated.dir=${build.dir}/generated
+com.sun.jbi.ui.devtool.jbi.description.application-sub-assembly=Represents this Service Unit
+com.sun.jbi.ui.devtool.jbi.setype.prefix=sun-bpel-engine
+debug.classpath=${javac.classpath}:${build.classes.dir}
+dist.dir=dist
+dist.jar=${dist.dir}/Common.zip
+dist.javadoc.dir=${dist.dir}/javadoc
+jar.compress=false
+jar.name=Common.jar
+javac.debug=true
+javac.deprecation=false
+javac.source=1.4
+javac.target=1.4
+jbi.se.type=sun-bpel-engine
+jbi.service-unit.description=Represents this Service Unit
+meta.inf=${source.root}/conf
+platform.active=default_platform
+resource.dir=setup
+sedeployment.jar=${build.dir}/SEDeployment.jar
+source.encoding=UTF-8
+source.root=src
+src.dir=${source.root}
+wsdl.classpath=
Added: trunk/sandbox/javaee-se-example/nbproject/project.xml
===================================================================
--- trunk/sandbox/javaee-se-example/nbproject/project.xml (rev 0)
+++ trunk/sandbox/javaee-se-example/nbproject/project.xml 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.bpel.project</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/j2ee-bpelpro/1">
+ <name>Common</name>
+ <minimum-ant-version>1.6</minimum-ant-version>
+ </data>
+ </configuration>
+</project>
Added: trunk/sandbox/javaee-se-example/src/CourseManager.wsdl
===================================================================
--- trunk/sandbox/javaee-se-example/src/CourseManager.wsdl (rev 0)
+++ trunk/sandbox/javaee-se-example/src/CourseManager.wsdl 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="CourseManager" targetNamespace="http://j2ee.netbeans.org/wsdl/Common/CourseManager"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/Common/CourseManager" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ <types>
+ <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/Common/CourseManager">
+ <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="DataTypes.xsd"/>
+ </xsd:schema>
+ </types>
+ <message name="CreateCourseOperationRequest">
+ <part name="Course" type="ns:EntityType"/>
+ </message>
+ <message name="UpdateCourseOperationRequest">
+ <part name="Course" type="ns:EntityType"/>
+ </message>
+ <portType name="CourseManagerPortType">
+ <operation name="CreateCourseOperation">
+ <input name="input1" message="tns:CreateCourseOperationRequest"/>
+ </operation>
+ <operation name="UpdateCourseOperation">
+ <input name="input2" message="tns:UpdateCourseOperationRequest"/>
+ </operation>
+ </portType>
+ <binding name="CourseManagerBinding" type="tns:CourseManagerPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="CreateCourseOperation">
+ <soap:operation/>
+ <input name="input1">
+ <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/Common/CourseManager"/>
+ </input>
+ </operation>
+ <operation name="UpdateCourseOperation">
+ <input name="input2">
+ <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/Common/CourseManager"/>
+ </input>
+ </operation>
+ </binding>
+ <service name="CourseManagerService">
+ <port name="CourseManagerPort" binding="tns:CourseManagerBinding">
+ <soap:address location="http://localhost:${HttpDefaultPort}/CourseManagerService/CourseManagerPort"/>
+ </port>
+ </service>
+ <plnk:partnerLinkType name="CourseManager">
+ <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.
+In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
+A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
+ <plnk:role name="CourseManagerPortTypeRole" portType="tns:CourseManagerPortType"/>
+ </plnk:partnerLinkType>
+</definitions>
Added: trunk/sandbox/javaee-se-example/src/DataTypes.xsd
===================================================================
--- trunk/sandbox/javaee-se-example/src/DataTypes.xsd (rev 0)
+++ trunk/sandbox/javaee-se-example/src/DataTypes.xsd 2009-02-24 14:59:25 UTC (rev 32)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://cse.campussource.de/schema/DataTypes"
+ xmlns:tns="http://cse.campussource.de/schema/DataTypes"
+ elementFormDefault="qualified">
+ <xsd:complexType name="EntityType">
+ <xsd:sequence>
+ <xsd:element name="Type" type="xsd:string"/>
+ <xsd:element name="Id" type="xsd:long"/>
+ <xsd:element name="Attributes" type="tns:AttributeType" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="AttributeType">
+ <xsd:sequence>
+ <xsd:element name="Name" type="xsd:string"/>
+ <xsd:element name="Value" type="xsd:anyType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="RelationType">
+ <xsd:sequence>
+ <xsd:element name="Type" type="xsd:string"/>
+ <xsd:element name="ParentId" type="xsd:long"/>
+ <xsd:element name="ChildId" type="xsd:long"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="Entity" type="tns:EntityType"/>
+ <xsd:element name="Relation" type="tns:RelationType"/>
+</xsd:schema>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|