ISIS-188: quickstart_wicket_restful_jdo archetype + script
Project: http://git-wip-us.apache.org/repos/asf/isis/repo Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/d4192732 Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/d4192732 Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/d4192732 Branch: refs/heads/master Commit: d4192732ee8f2efca92152bde8418ce8b79d7e8a Parents: 95b99bd Author: Dan Haywood <[email protected]> Authored: Wed Dec 19 07:36:41 2012 +0000 Committer: Dan Haywood <[email protected]> Committed: Wed Dec 19 08:03:36 2012 +0000 ---------------------------------------------------------------------- .../appended-resources/supplemental-models.xml | 26 +++++++++ .../resources/projects/basic/archetype.properties | 2 +- scripts/updateGeneratedArchetypeSources.groovy | 40 +++++++++++++++ 3 files changed, 67 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/isis/blob/d4192732/example/archetype/quickstart_wicket_restful_jdo/src/main/appended-resources/supplemental-models.xml ---------------------------------------------------------------------- diff --git a/example/archetype/quickstart_wicket_restful_jdo/src/main/appended-resources/supplemental-models.xml b/example/archetype/quickstart_wicket_restful_jdo/src/main/appended-resources/supplemental-models.xml new file mode 100644 index 0000000..01c58d8 --- /dev/null +++ b/example/archetype/quickstart_wicket_restful_jdo/src/main/appended-resources/supplemental-models.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<supplementalDataModels + xmlns="http://maven.apache.org/supplemental-model/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 + http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd"> + +</supplementalDataModels> http://git-wip-us.apache.org/repos/asf/isis/blob/d4192732/example/archetype/quickstart_wicket_restful_jdo/src/test/resources/projects/basic/archetype.properties ---------------------------------------------------------------------- diff --git a/example/archetype/quickstart_wicket_restful_jdo/src/test/resources/projects/basic/archetype.properties b/example/archetype/quickstart_wicket_restful_jdo/src/test/resources/projects/basic/archetype.properties index 7df9be9..fcc97cd 100644 --- a/example/archetype/quickstart_wicket_restful_jdo/src/test/resources/projects/basic/archetype.properties +++ b/example/archetype/quickstart_wicket_restful_jdo/src/test/resources/projects/basic/archetype.properties @@ -1,4 +1,4 @@ -#Wed Dec 19 07:09:24 GMT 2012 +#Wed Dec 19 07:31:55 GMT 2012 package=it.pkg version=0.1-SNAPSHOT groupId=archetype.it http://git-wip-us.apache.org/repos/asf/isis/blob/d4192732/scripts/updateGeneratedArchetypeSources.groovy ---------------------------------------------------------------------- diff --git a/scripts/updateGeneratedArchetypeSources.groovy b/scripts/updateGeneratedArchetypeSources.groovy index 4a08201..73c555e 100644 --- a/scripts/updateGeneratedArchetypeSources.groovy +++ b/scripts/updateGeneratedArchetypeSources.groovy @@ -58,6 +58,34 @@ def license_using_xml_comments="""<?xml version="1.0" encoding="UTF-8"?> --> """ +def supplemental_models_text="""<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<supplementalDataModels + xmlns="http://maven.apache.org/supplemental-model/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 + http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd"> + +</supplementalDataModels> +""" + ///////////////////////////////////////////////////// // // Parse command line @@ -177,6 +205,18 @@ new File(ROOT+"archetype-resources/").eachDirRecurse() { dir -> /////////////////////////////////////////////////// // +// add empty supplemental-models.xml +// +/////////////////////////////////////////////////// + +def appendedResourcesDir = new File(BASE + "src/main/appended-resources") +appendedResourcesDir.mkdir() +//def supplementalModelsFileName=BASE + "src/main/appended-resources/supplemental-models.xml" +def supplementalModelsFile=new File(appendedResourcesDir, "supplemental-models.xml") +supplementalModelsFile.text = supplemental_models_text + +/////////////////////////////////////////////////// +// // helper methods // ///////////////////////////////////////////////////
