fixed/refactored ACS archetypes
This commit is contained in:
@@ -13,6 +13,11 @@ function start_ {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_log {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad "-Ddocker.showLogs" process-classes
|
||||||
|
}
|
||||||
|
|
||||||
function stop_ {
|
function stop_ {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -41,6 +46,9 @@ switch ($args[0]) {
|
|||||||
"start" {
|
"start" {
|
||||||
start_
|
start_
|
||||||
}
|
}
|
||||||
|
"start_log" {
|
||||||
|
start_log
|
||||||
|
}
|
||||||
"stop" {
|
"stop" {
|
||||||
stop_
|
stop_
|
||||||
}
|
}
|
||||||
@@ -58,7 +66,7 @@ switch ($args[0]) {
|
|||||||
list
|
list
|
||||||
}
|
}
|
||||||
default {
|
default {
|
||||||
echo "Usage: .\rad.ps1 [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: .\rad.ps1 [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
discoverArtifactId() {
|
discoverArtifactId() {
|
||||||
ARTIFACT_ID=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null`
|
ARTIFACT_ID=`mvn -q -Dexpression=project.artifactId -DforceStdout help:evaluate`
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuild() {
|
rebuild() {
|
||||||
@@ -14,6 +14,11 @@ start() {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_log() {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad -Ddocker.showLogs process-classes
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -38,6 +43,9 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
start_log)
|
||||||
|
start_log
|
||||||
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
@@ -55,7 +63,7 @@ case "$1" in
|
|||||||
list
|
list
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: ./rad.sh [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: ./rad.sh [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
package ${package}.annotation;
|
package ${package}.spring;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@@ -1,4 +1,4 @@
|
|||||||
package ${package}.annotation;
|
package ${package}.spring;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@@ -0,0 +1,8 @@
|
|||||||
|
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
|
||||||
|
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||||
|
xmlns:bfs="http://fiscal.treasury.gov/alfresco/model/common/1.0">
|
||||||
|
|
||||||
|
<cm:folder>
|
||||||
|
<cm:name>Example Folder</cm:name>
|
||||||
|
</cm:folder>
|
||||||
|
</view:view>
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<!-- Enable Spring annotation scanning for classes in package -->
|
<!-- Enable Spring annotation scanning for classes in package -->
|
||||||
<context:component-scan base-package="${package}">
|
<context:component-scan base-package="${package}">
|
||||||
<context:include-filter type="annotation" expression="${package}.annotation.ModuleEarlyComponent" />
|
<context:include-filter type="annotation" expression="${package}.spring.ModuleEarlyComponent" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
<!-- Example Data Model loading -->
|
<!-- Example Data Model loading -->
|
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
<!-- Enable Spring annotation scanning for classes in package -->
|
<!-- Enable Spring annotation scanning for classes in package -->
|
||||||
<context:component-scan base-package="${package}">
|
<context:component-scan base-package="${package}">
|
||||||
<context:exclude-filter type="annotation" expression="${package}.annotation.ModuleEarlyComponent" />
|
<context:exclude-filter type="annotation" expression="${package}.spring.ModuleEarlyComponent" />
|
||||||
<context:exclude-filter type="annotation" expression="${package}.annotation.ModuleLateComponent" />
|
<context:exclude-filter type="annotation" expression="${package}.spring.ModuleLateComponent" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
<bean id="${project.groupId}.${project.artifactId}.jsroot.example" class="${package}.ExampleJavaScriptRootObject" parent="baseJavaScriptExtension">
|
<bean id="${project.groupId}.${project.artifactId}.jsroot.example" class="${package}.ExampleJavaScriptRootObject" parent="baseJavaScriptExtension">
|
||||||
@@ -19,4 +19,25 @@
|
|||||||
|
|
||||||
<bean id="${project.groupId}.${project.artifactId}.action.example" class="${package}.ExampleActionExecuter" parent="action-executer" />
|
<bean id="${project.groupId}.${project.artifactId}.action.example" class="${package}.ExampleActionExecuter" parent="action-executer" />
|
||||||
|
|
||||||
|
<bean id="${project.groupId}.${project.artifactId}.dataBootstrap_v1.0"
|
||||||
|
class="org.alfresco.repo.module.ImporterModuleComponent" parent="module.baseComponent"
|
||||||
|
depends-on="${project.groupId}.${project.artifactId}.dictionaryBootstrap">
|
||||||
|
|
||||||
|
<property name="moduleId" value="${project.artifactId}" />
|
||||||
|
<property name="name" value="${project.name} Data" />
|
||||||
|
<property name="description" value="Initial data load for ${project.name}" />
|
||||||
|
<property name="sinceVersion" value="0.1" />
|
||||||
|
<property name="appliesFromVersion" value="0.1" />
|
||||||
|
|
||||||
|
<property name="importer" ref="spacesBootstrap" />
|
||||||
|
<property name="bootstrapViews">
|
||||||
|
<list>
|
||||||
|
<props>
|
||||||
|
<prop key="path">/${spaces.company_home.childname}</prop>
|
||||||
|
<prop key="location">alfresco/module/${project.groupId}.${project.artifactId}/dataset/example_v1.xml</prop>
|
||||||
|
</props>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<!-- Enable Spring annotation scanning for classes in package -->
|
<!-- Enable Spring annotation scanning for classes in package -->
|
||||||
<context:component-scan base-package="${package}">
|
<context:component-scan base-package="${package}">
|
||||||
<context:include-filter type="annotation" expression="${package}.annotation.ModuleLateComponent" />
|
<context:include-filter type="annotation" expression="${package}.spring.ModuleLateComponent" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@@ -13,6 +13,11 @@ function start_ {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_log {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad "-Ddocker.showLogs" process-classes
|
||||||
|
}
|
||||||
|
|
||||||
function stop_ {
|
function stop_ {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -41,6 +46,9 @@ switch ($args[0]) {
|
|||||||
"start" {
|
"start" {
|
||||||
start_
|
start_
|
||||||
}
|
}
|
||||||
|
"start_log" {
|
||||||
|
start_log
|
||||||
|
}
|
||||||
"stop" {
|
"stop" {
|
||||||
stop_
|
stop_
|
||||||
}
|
}
|
||||||
@@ -58,7 +66,7 @@ switch ($args[0]) {
|
|||||||
list
|
list
|
||||||
}
|
}
|
||||||
default {
|
default {
|
||||||
echo "Usage: .\rad.ps1 [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: .\rad.ps1 [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
discoverArtifactId() {
|
discoverArtifactId() {
|
||||||
ARTIFACT_ID=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null`
|
ARTIFACT_ID=`mvn -q -Dexpression=project.artifactId -DforceStdout help:evaluate`
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuild() {
|
rebuild() {
|
||||||
@@ -14,6 +14,11 @@ start() {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_log() {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad -Ddocker.showLogs process-classes
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -38,6 +43,9 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
start_log)
|
||||||
|
start_log
|
||||||
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
@@ -55,7 +63,7 @@ case "$1" in
|
|||||||
list
|
list
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: ./rad.sh [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: ./rad.sh [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@@ -13,6 +13,11 @@ function start_ {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_log {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad "-Ddocker.showLogs" process-classes
|
||||||
|
}
|
||||||
|
|
||||||
function stop_ {
|
function stop_ {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -41,6 +46,9 @@ switch ($args[0]) {
|
|||||||
"start" {
|
"start" {
|
||||||
start_
|
start_
|
||||||
}
|
}
|
||||||
|
"start_log" {
|
||||||
|
start_log
|
||||||
|
}
|
||||||
"stop" {
|
"stop" {
|
||||||
stop_
|
stop_
|
||||||
}
|
}
|
||||||
@@ -58,7 +66,7 @@ switch ($args[0]) {
|
|||||||
list
|
list
|
||||||
}
|
}
|
||||||
default {
|
default {
|
||||||
echo "Usage: .\rad.ps1 [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: .\rad.ps1 [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
discoverArtifactId() {
|
discoverArtifactId() {
|
||||||
ARTIFACT_ID=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null`
|
ARTIFACT_ID=`mvn -q -Dexpression=project.artifactId -DforceStdout help:evaluate`
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuild() {
|
rebuild() {
|
||||||
@@ -14,6 +14,11 @@ start() {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_log() {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad -Ddocker.showLogs process-classes
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -38,6 +43,9 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
start_log)
|
||||||
|
start_log
|
||||||
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
@@ -55,7 +63,7 @@ case "$1" in
|
|||||||
list
|
list
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: ./rad.sh [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: ./rad.sh [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
package ${package}.annotation;
|
package ${package}.spring;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@@ -1,4 +1,4 @@
|
|||||||
package ${package}.annotation;
|
package ${package}.spring;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@@ -0,0 +1,8 @@
|
|||||||
|
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
|
||||||
|
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||||
|
xmlns:bfs="http://fiscal.treasury.gov/alfresco/model/common/1.0">
|
||||||
|
|
||||||
|
<cm:folder>
|
||||||
|
<cm:name>Example Folder</cm:name>
|
||||||
|
</cm:folder>
|
||||||
|
</view:view>
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<!-- Enable Spring annotation scanning for classes in package -->
|
<!-- Enable Spring annotation scanning for classes in package -->
|
||||||
<context:component-scan base-package="${package}">
|
<context:component-scan base-package="${package}">
|
||||||
<context:include-filter type="annotation" expression="${package}.annotation.ModuleEarlyComponent" />
|
<context:include-filter type="annotation" expression="${package}.spring.ModuleEarlyComponent" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
<!-- Example Data Model loading -->
|
<!-- Example Data Model loading -->
|
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
<!-- Enable Spring annotation scanning for classes in package -->
|
<!-- Enable Spring annotation scanning for classes in package -->
|
||||||
<context:component-scan base-package="${package}">
|
<context:component-scan base-package="${package}">
|
||||||
<context:exclude-filter type="annotation" expression="${package}.annotation.ModuleEarlyComponent" />
|
<context:exclude-filter type="annotation" expression="${package}.spring.ModuleEarlyComponent" />
|
||||||
<context:exclude-filter type="annotation" expression="${package}.annotation.ModuleLateComponent" />
|
<context:exclude-filter type="annotation" expression="${package}.spring.ModuleLateComponent" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
<bean id="${project.groupId}.${project.artifactId}.jsroot.example" class="${package}.ExampleJavaScriptRootObject" parent="baseJavaScriptExtension">
|
<bean id="${project.groupId}.${project.artifactId}.jsroot.example" class="${package}.ExampleJavaScriptRootObject" parent="baseJavaScriptExtension">
|
||||||
@@ -19,4 +19,25 @@
|
|||||||
|
|
||||||
<bean id="${project.groupId}.${project.artifactId}.action.example" class="${package}.ExampleActionExecuter" parent="action-executer" />
|
<bean id="${project.groupId}.${project.artifactId}.action.example" class="${package}.ExampleActionExecuter" parent="action-executer" />
|
||||||
|
|
||||||
|
<bean id="${project.groupId}.${project.artifactId}.dataBootstrap_v1.0"
|
||||||
|
class="org.alfresco.repo.module.ImporterModuleComponent" parent="module.baseComponent"
|
||||||
|
depends-on="${project.groupId}.${project.artifactId}.dictionaryBootstrap">
|
||||||
|
|
||||||
|
<property name="moduleId" value="${project.artifactId}" />
|
||||||
|
<property name="name" value="${project.name} Data" />
|
||||||
|
<property name="description" value="Initial data load for ${project.name}" />
|
||||||
|
<property name="sinceVersion" value="0.1" />
|
||||||
|
<property name="appliesFromVersion" value="0.1" />
|
||||||
|
|
||||||
|
<property name="importer" ref="spacesBootstrap" />
|
||||||
|
<property name="bootstrapViews">
|
||||||
|
<list>
|
||||||
|
<props>
|
||||||
|
<prop key="path">/${spaces.company_home.childname}</prop>
|
||||||
|
<prop key="location">alfresco/module/${project.groupId}.${project.artifactId}/dataset/example_v1.xml</prop>
|
||||||
|
</props>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<!-- Enable Spring annotation scanning for classes in package -->
|
<!-- Enable Spring annotation scanning for classes in package -->
|
||||||
<context:component-scan base-package="${package}">
|
<context:component-scan base-package="${package}">
|
||||||
<context:include-filter type="annotation" expression="${package}.annotation.ModuleLateComponent" />
|
<context:include-filter type="annotation" expression="${package}.spring.ModuleLateComponent" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@@ -108,7 +108,7 @@
|
|||||||
-Dtransform.service.enabled=${beedk.rad.ats.enabled} -Dtransform.service.url=http://${project.artifactId}-ats-atr:8095 -Dsfs.url=http://${project.artifactId}-ats-sfs:8099 \
|
-Dtransform.service.enabled=${beedk.rad.ats.enabled} -Dtransform.service.url=http://${project.artifactId}-ats-atr:8095 -Dsfs.url=http://${project.artifactId}-ats-sfs:8099 \
|
||||||
-Dlocal.transform.service.enabled=${beedk.rad.alts.enabled} \
|
-Dlocal.transform.service.enabled=${beedk.rad.alts.enabled} \
|
||||||
-DlocalTransform.core-aio.url=http://${project.artifactId}-ate-aio:8090 -DlocalTransform.ate.url=http://${project.artifactId}-ate:8090 \
|
-DlocalTransform.core-aio.url=http://${project.artifactId}-ate-aio:8090 -DlocalTransform.ate.url=http://${project.artifactId}-ate:8090 \
|
||||||
-Djodconverter.enabled=false \
|
-Djodconverter.enabled=false -Dsystem.workflow.engine.activiti.enabled=true \
|
||||||
-Dalfresco-pdf-renderer.url=http://${project.artifactId}-ate-aio:8090 -Djodconverter.url=http://${project.artifactId}-ate-aio:8090 -Dimg.url=http://${project.artifactId}-ate-aio:8090 -Dtika.url=http://${project.artifactId}-ate-aio:8090 -Dtransform.misc.url=http://${project.artifactId}-ate-aio:8090 \
|
-Dalfresco-pdf-renderer.url=http://${project.artifactId}-ate-aio:8090 -Djodconverter.url=http://${project.artifactId}-ate-aio:8090 -Dimg.url=http://${project.artifactId}-ate-aio:8090 -Dtika.url=http://${project.artifactId}-ate-aio:8090 -Dtransform.misc.url=http://${project.artifactId}-ate-aio:8090 \
|
||||||
-Dindex.subsystem.name=${beedk.rad.platform.index} -Dsolr.host=${project.artifactId}-acs-search -Dsolr.secureComms=none \
|
-Dindex.subsystem.name=${beedk.rad.platform.index} -Dsolr.host=${project.artifactId}-acs-search -Dsolr.secureComms=none \
|
||||||
${acs-platform.tomcat.opts}</CATALINA_OPTS>
|
${acs-platform.tomcat.opts}</CATALINA_OPTS>
|
||||||
|
@@ -13,6 +13,11 @@ function start_ {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_log {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad "-Ddocker.showLogs" process-classes
|
||||||
|
}
|
||||||
|
|
||||||
function stop_ {
|
function stop_ {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -41,6 +46,9 @@ switch ($args[0]) {
|
|||||||
"start" {
|
"start" {
|
||||||
start_
|
start_
|
||||||
}
|
}
|
||||||
|
"start_log" {
|
||||||
|
start_log
|
||||||
|
}
|
||||||
"stop" {
|
"stop" {
|
||||||
stop_
|
stop_
|
||||||
}
|
}
|
||||||
@@ -58,7 +66,7 @@ switch ($args[0]) {
|
|||||||
list
|
list
|
||||||
}
|
}
|
||||||
default {
|
default {
|
||||||
echo "Usage: .\rad.ps1 [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: .\rad.ps1 [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
discoverArtifactId() {
|
discoverArtifactId() {
|
||||||
ARTIFACT_ID=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null`
|
ARTIFACT_ID=`mvn -q -Dexpression=project.artifactId -DforceStdout help:evaluate`
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuild() {
|
rebuild() {
|
||||||
@@ -14,6 +14,11 @@ start() {
|
|||||||
mvn -Drad process-classes
|
mvn -Drad process-classes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_log() {
|
||||||
|
echo "Rebuilding project and starting Docker containers to support rapid application development ..."
|
||||||
|
mvn -Drad -Ddocker.showLogs process-classes
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
discoverArtifactId
|
discoverArtifactId
|
||||||
echo "Stopping Docker containers that supported rapid application development ..."
|
echo "Stopping Docker containers that supported rapid application development ..."
|
||||||
@@ -38,6 +43,9 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
start_log)
|
||||||
|
start_log
|
||||||
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
@@ -55,7 +63,7 @@ case "$1" in
|
|||||||
list
|
list
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: ./rad.sh [ start | stop | restart | rebuild | tail {container} | containers ]"
|
echo "Usage: ./rad.sh [ start | start_log | stop | restart | rebuild | tail {container} | containers ]"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user