Changeset 7940 for mauRepo/NewmoonJSP
- Timestamp:
- 13/07/11 11:55:49 (10 years ago)
- Location:
- mauRepo/NewmoonJSP
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/NewmoonJSP/.classpath
r7934 r7940 2 2 <classpath> 3 3 <classpathentry kind="src" output="target/classes" path="src/main/java"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER /org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 5 <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> 6 6 <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> -
mauRepo/NewmoonJSP/.project
r7883 r7940 45 45 <nature>org.eclipse.wst.jsdt.core.jsNature</nature> 46 46 <nature>org.jboss.tools.jst.web.kb.kbnature</nature> 47 <nature>org.jboss.tools.jsf.jsfnature</nature>48 47 </natures> 49 48 </projectDescription> -
mauRepo/NewmoonJSP/pom.xml
r7936 r7940 4 4 <groupId>ndg.services.newmoon</groupId> 5 5 <artifactId>newmoon-web</artifactId> 6 <version>1.1. 1</version>6 <version>1.1.2</version> 7 7 <packaging>war</packaging> 8 8 … … 110 110 <groupId>ndg.services.newmoon</groupId> 111 111 <artifactId>core</artifactId> 112 <version>1.1. 1</version>112 <version>1.1.2</version> 113 113 <exclusions> 114 114 <exclusion> -
mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
r7849 r7940 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <PROCESS model-entity="JSFProcess"> 3 <PROCESS-ITEM NAME="rules:# encodeXMI.xhtml" PATH="/encodeXMI.xhtml"4 SHAPE="188,80,0,0" model-entity="JSFProcessGroup">5 <PROCESS-ITEM ID="rules:# encodeXMI.xhtml:0" NAME="item"6 PATH="/ encodeXMI.xhtml" model-entity="JSFProcessItem">7 <PROCESS-ITEM-OUTPUT ID="encodeXMI::# encodeXMI.xhtml" NAME="output"8 PATH="/encodeXMI.xhtml" TARGET="rules:#encodeXMI.xhtml"9 T ITLE="encodeXMI" model-entity="JSFProcessItemOutput"/>3 <PROCESS-ITEM NAME="rules:#pages#encodeXMI.xhtml" 4 PATH="/pages/encodeXMI.xhtml" SHAPE="32,17,0,0" model-entity="JSFProcessGroup"> 5 <PROCESS-ITEM ID="rules:#pages#encodeXMI.xhtml:0" NAME="item" 6 PATH="/pages/encodeXMI.xhtml" model-entity="JSFProcessItem"> 7 <PROCESS-ITEM-OUTPUT ID="encodeXMI::#pages#encodeXMI.xhtml" 8 NAME="output" PATH="/pages/encodeXMI.xhtml" 9 TARGET="rules:#pages#encodeXMI.xhtml" TITLE="encodeXMI" model-entity="JSFProcessItemOutput"/> 10 10 </PROCESS-ITEM> 11 11 </PROCESS-ITEM> -
mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/faces-config.xml
r7934 r7940 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" 3 xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"> 5 <managed-bean> 6 <managed-bean-name>xMIEncoder</managed-bean-name> 7 <managed-bean-class>ndg.newmoon.web.XMIEncoderBean</managed-bean-class> 8 <managed-bean-scope>session</managed-bean-scope> 9 </managed-bean> 10 <navigation-rule> 11 <from-view-id>/pages/encodeXMI.xhtml</from-view-id> 12 <navigation-case> 13 <from-outcome>encodeXMI</from-outcome> 14 <to-view-id>/pages/encodeXMI.xhtml</to-view-id> 15 </navigation-case> 16 </navigation-rule> 17 <!-- 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"> 5 <managed-bean> 6 <managed-bean-name>xMIEncoder</managed-bean-name> 7 <managed-bean-class>ndg.newmoon.web.XMIEncoderBean</managed-bean-class> 8 <managed-bean-scope>session</managed-bean-scope> 9 </managed-bean> 10 <navigation-rule> 11 <from-view-id>/pages/encodeXMI.xhtml</from-view-id> 12 <navigation-case> 13 <from-outcome>encodeXMI</from-outcome> 14 <to-view-id>/pages/encodeXMI.xhtml</to-view-id> 15 </navigation-case> 16 </navigation-rule> 17 <factory> 18 <exception-handler-factory>ndg.newmoon.web.ViewExpiredExceptionExceptionHandlerFactory</exception-handler-factory> 19 </factory> 20 <!-- 18 21 <converter> 19 22 <converter-for-class>ndg.services.newmoon.NewmoonManager.GML_VERSION</converter-for-class> -
mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/rules/schema-encoding/xmi11ea/modules/module-constants.xq
r7934 r7940 3 3 module namespace mod-co = "urn:local-module:schema-encoding:xmi11ea:constants"; 4 4 5 declare variable $mod-co:suite-id as xs:string := " schema-encoding/xmi11ea";5 declare variable $mod-co:suite-id as xs:string := "xmi11ea"; 6 6 declare variable $mod-co:default-register-path as xs:string := "dependency/Register_ExternalPackages.xml"; 7 7 -
mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/rules/schema-encoding/xmi11ea/modules/module-dbase-functions.xq
r7934 r7940 14 14 declare namespace xmldb="http://exist-db.org/xquery/xmldb"; 15 15 16 declare variable $mod-db:base-collection-name as xs:string := $mod-co:suite-id; 16 declare variable $mod-db:base-collection-res as xs:string := "schema-encoding"; 17 declare variable $mod-db:base-collection-name as xs:string := concat($mod-db:base-collection-res, "/", $mod-co:suite-id); 17 18 declare variable $mod-db:working-collection-name as xs:string := "working"; 18 19 declare variable $mod-db:mapping-collection-name as xs:string := "mapping"; … … 20 21 declare function mod-db:base-collection-uri($root-collection-path as xs:string) as xs:string 21 22 { 22 concat($root-collection-path, "/", $mod- co:suite-id)23 concat($root-collection-path, "/", $mod-db:base-collection-res, "/", $mod-co:suite-id) 23 24 }; 24 25 -
mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/rules/schema-encoding/xmi11ea/process-002.xq
r7936 r7940 36 36 declare variable $dependency-register-path as xs:string external; 37 37 declare variable $gml-version as xs:string external; 38 declare variable $defReg := concat("file://", replace($working-directory, "\\", "/"), "/", $mod-co:default-register-path); 38 39 39 40 declare function local:resolve-dependency-register-path($paths as xs:string*) as xs:string* … … 63 64 { 64 65 let $collection := mod-db:get-mapping-collection(), 65 $defReg := concat("file://", replace($working-directory, "\\", "/"), "/", $mod-co:default-register-path),66 66 $registers := ( 67 67 if (empty($dependency-register-path) or $dependency-register-path eq "") then 68 68 ($defReg) 69 69 else 70 ( concat("file://", replace($execution-directory, "\\", "/"), "/", $dependency-register-path), $defReg)70 ($defReg, concat("file://", replace($execution-directory, "\\", "/"), "/", $dependency-register-path)) 71 71 ), 72 72 $registers := ( … … 89 89 ) 90 90 ) 91 return 91 return 92 92 for $f at $i in $class-maps 93 where empty($class-maps[position() lt $i and . eq $f]) 94 return 95 let 96 $doc := fn:doc(string($f)), 97 $ret := ( 98 if (exists($doc)) then 99 ( 100 let 101 $file-name := $doc/tm:mapping/string(@id), 102 $file := xmldb:store($collection, $file-name, $doc/tm:mapping, "text/xml")[1], 103 (: Set the @priority attribute on the mapping entries according to user specified priorities :) 104 $xu := 105 <xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate" xmlns:tm="urn:x-auscope:xmlns:CSIRO:FullMoon:package-class-map:2.0"> 106 <xu:append select="{ concat("/tm:mapping[@id eq '", $file-name, "']/tm:entry") }"> 107 <xu:attribute name="priority">{ $i }</xu:attribute> 108 </xu:append> 109 <xu:append select="{ concat("/tm:mapping[@id eq '", $file-name, "']") }"> 110 <xu:attribute name="priority">{ $i }</xu:attribute> 111 <xu:attribute name="package">{ $f/../../../string(@name) }</xu:attribute> 112 </xu:append> 113 </xu:modifications>, 114 $op := mod-db:update-mapping-collection($xu) 115 return concat("Added type-mapping table ", $file) 116 ) 117 else 118 concat("Failed to load ", $f) 119 ) 120 return $ret 93 where empty($class-maps[position() lt $i and . eq $f]) 94 return 95 let 96 $doc := fn:doc(string($f)), 97 $ret := ( 98 if (fn:exists($doc)) then 99 (let 100 $file-name := $doc/tm:mapping/string(@id), 101 $file := xmldb:store($collection, $file-name, $doc/tm:mapping, "text/xml")[1], 102 (: Set the @priority attribute on the mapping entries according to user specified priorities :) 103 $xu := 104 <xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate" xmlns:tm="urn:x-auscope:xmlns:CSIRO:FullMoon:package-class-map:2.0"> 105 <xu:append select="{ concat("/tm:mapping[@id eq '", $file-name, "']/tm:entry") }"> 106 <xu:attribute name="priority">{ $i }</xu:attribute> 107 </xu:append> 108 </xu:modifications>, 109 $op := mod-db:update-mapping-collection($xu) 110 return concat("Added type-mapping table ", $file) 111 ) else 112 concat("Failed to load ", $f) 113 114 ) 115 return $ret 121 116 }; 122 117
Note: See TracChangeset
for help on using the changeset viewer.