You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2024/12/16 09:54:03 UTC

(sling-project-archetype) branch master updated: SLING-12567 Add launcher.bat (#18)

This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-project-archetype.git


The following commit(s) were added to refs/heads/master by this push:
     new db0b82f  SLING-12567 Add launcher.bat (#18)
db0b82f is described below

commit db0b82fd8fffa038b84a3bd312c663adf25e8b8f
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Mon Dec 16 10:53:58 2024 +0100

    SLING-12567 Add launcher.bat (#18)
---
 .../META-INF/maven/archetype-metadata.xml          |  5 +++--
 .../archetype-resources/launcher/launch.bat        | 23 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/META-INF/maven/archetype-metadata.xml b/src/main/resources/META-INF/maven/archetype-metadata.xml
index ef08d1b..1716e70 100644
--- a/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -18,9 +18,9 @@
     under the License.
 -->
 <archetype-descriptor
-        xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
+        xsi:schemaLocation="https://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.1.0 https://maven.apache.org/xsd/archetype-descriptor-1.1.0.xsd"
         name="sling-project-archetype"
-        xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+        xmlns="https://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.1.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 >
     <requiredProperties>
@@ -171,6 +171,7 @@
                     <directory></directory>
                     <includes>
                         <include>*.sh</include>
+                        <include>*.bat</include>
                     </includes>
                 </fileSet>
             </fileSets>
diff --git a/src/main/resources/archetype-resources/launcher/launch.bat b/src/main/resources/archetype-resources/launcher/launch.bat
new file mode 100644
index 0000000..6520023
--- /dev/null
+++ b/src/main/resources/archetype-resources/launcher/launch.bat
@@ -0,0 +1,23 @@
+@echo off
+::
+:: 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.
+::
+echo.-------------------------------------------------------------------------------------------
+echo.[NOTE] Launching application, this will fail if you did not build the project at least once
+echo.[NOTE] Remove the launcher folder to throw away local changes
+echo.-------------------------------------------------------------------------------------------
+
+target/dependency/org.apache.sling.feature.launcher/bin/launcher.bat -f target/slingfeature-tmp/feature-app.json