From: <ale...@us...> - 2009-06-10 12:56:14
|
Revision: 252 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=252&view=rev Author: alexloewen Date: 2009-06-10 12:36:38 +0000 (Wed, 10 Jun 2009) Log Message: ----------- edited updateCategory and UpdateCourse. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-10 12:36:38 UTC (rev 252) @@ -1,24 +1,66 @@ <?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"/> - <target name="init-esb-ide" if="netbeans.home"> + <!-- + 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="-init-esb-ide" if="netbeans.home"> <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="init-esb-cli" unless="netbeans.home"> + <target name="-init-esb-cmdline" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="check-catd-context"> - <condition property="no.catd.context"> - <not> - <isset property="org.netbeans.modules.compapp.catd.context"/> - </not> - </condition> - </target> - <target name="init-catd" if="no.catd.context"> - <property name="org.netbeans.modules.compapp.catd.context" value=""/> - </target> - <target name="pre-init" depends="init-esb-ide,init-esb-cli,check-catd-context,init-catd"/> + <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-10 12:36:38 UTC (rev 252) @@ -2,6 +2,6 @@ <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> - <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-10 12:36:38 UTC (rev 252) @@ -1,43 +1,52 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - *** GENERATED FROM project.xml - DO NOT EDIT *** - *** EDIT ../build.xml INSTEAD *** + *** 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="ILIASClientAdapter-impl" default="default" basedir=".."> - <target name="default" depends="dist_se"/> + <target name="default" depends="dist_se" description="Build whole project."/> <!-- + ====================== INITIALIZATION SECTION + ====================== --> - <target name="pre-init"> + <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"> + <target name="-init-private" depends="-pre-init"> <property file="nbproject/private/private.properties"/> </target> - <target name="init-userdir" depends="pre-init,init-private"> + <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"> + <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"> + <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"> + <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"> + <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"> + <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"> + <target name="-init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> @@ -86,21 +95,25 @@ <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"/> + <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"> + <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="-deps-jar-dist" depends="init" unless="${no.dependencies}"> <ant target="dist_se" inheritall="false" dir="${project.Common}"/> <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="do-dist" depends="init,pre-dist"> + <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> @@ -114,29 +127,31 @@ </fileset> </jar> </target> - <target name="post-dist"> + <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"/> + <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> <!-- + =============== CLEANUP SECTION + =============== --> - <target name="pre-clean"> + <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="-deps-clean" depends="init" unless="${no.dependencies}"> <ant target="clean" inheritall="false" dir="${project.Common}"/> <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="do-clean" depends="init,pre-clean"> + <target name="-do-clean" depends="init,-pre-clean"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> - <target name="post-clean"> + <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"/> + <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-06-10 12:36:38 UTC (rev 252) @@ -1,8 +1,8 @@ build.xml.data.CRC32=da61cde5 -build.xml.script.CRC32=22f94a4b -build.xml.stylesheet.CRC32=b168c0ed +build.xml.script.CRC32=60b50638 +build.xml.stylesheet.CRC32=f35fd70d # 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=da61cde5 -nbproject/build-impl.xml.script.CRC32=544d13e7 -nbproject/build-impl.xml.stylesheet.CRC32=2e896532 +nbproject/build-impl.xml.script.CRC32=fdb3b604 +nbproject/build-impl.xml.stylesheet.CRC32=5068533b Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-10 12:36:38 UTC (rev 252) @@ -8,6 +8,7 @@ xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor" xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment" xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateCategory" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable"> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -19,6 +20,7 @@ <partnerLink name="IliasAdpater" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" myRole="UpdateCategoryPortTypeRole"/> </partnerLinks> <variables> + <variable name="testVariable1" type="xsd:string"/> <variable name="GetObjectsByTitleOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleResponse"/> <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> <variable name="UpdateObjectsOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateObjectsResponse"/> @@ -70,21 +72,27 @@ </copy> </assign> - <assign name="fakeUpdateData"> + + <assign name="SetUpdatedData"> <copy> - <from>'test12'</from> - <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title</to> + <from>$UpdateCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> + <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title/text()</to> </copy> - <copy> - <from>'descrTest2'</from> - <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Description</to> + </assign> + + <assign name="Assign1"> + <copy> + <from>$UpdateCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> + <to>$testVariable1</to> </copy> - <copy> - <from>sxxf:current-dateTime()</from> - <to>$CategoryXMLtransformed/il_objs:Object/il_objs:LastUpdate</to> - </copy> </assign> + <assign name="deleteNamespaces"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>concat('***Title=: ', $testVariable1)</ns0:from> + </sxt:log> + </sxt:trace> <copy> <from>ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl', $CategoryXMLtransformed)</from> <to variable="CategoryXML"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-10 12:36:38 UTC (rev 252) @@ -24,6 +24,7 @@ <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse" myRole="UpdateCoursePortTypeRole"/> </partnerLinks> <variables> + <variable name="testUpdate1" type="xsd:string"/> <variable name="UpdateILIASCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateCourseResponse"/> <variable name="UpdateILIASCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateCourseRequest"/> <variable name="UpdateCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/> @@ -61,15 +62,15 @@ <to variable="CourseXML"/> </copy> </assign> --> - + <!--delete Namespaces bevor XSLT Transformation !--> <assign name="copyTheActualDataToCourseXML"> <copy> - <from>ns0:doXslTransform('urn:stylesheets:updateCourseXSLT.xsl', $UpdateCourseIn.course)</from> + <from>ns0:doXslTransform('urn:stylesheets:updateCourseXSLT.xsl', ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl',$UpdateCourseIn.course))</from> <to variable="CourseXML"/> </copy> </assign> - + <assign name="marshalCourseXML"> <sxt:trace> <sxt:log level="info" location="onStart"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |