Skip to content

Commit

Permalink
Proper support for nosamplecontent runmode
Browse files Browse the repository at this point in the history
  • Loading branch information
coatpont committed Dec 4, 2018
1 parent 359d732 commit 664e14f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ demo.download.acs.6.version=aem63
demo.commerce.websphere.host=159.8.42.210

#AEM/CQ download endpoints
demo.download.user=AdobeOnlyValueRequired
demo.download.password=AdobeOnlyValueRequired
demo.download.artifactory.user=AdobeOnlyValueRequired
demo.download.artifactory.password=AdobeOnlyValueRequired
demo.download.aem.artifactory=AdobeOnlyValueRequired
demo.download.aem.64=/artifactory/maven-aem-release-local/com/day/cq/cq-quickstart/6.4.0/cq-quickstart-6.4.0.jar
demo.download.aem.63=/artifactory/maven-aem-release-local/com/day/cq/cq-quickstart/6.3.0/cq-quickstart-6.3.0.jar
Expand Down
20 changes: 18 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@
<if>
<equals arg1="${demo.nosamples}" arg2="true" casesensitive="false"/>
<then>
<property name="nosamples.runmode" value=",nosamples"/>
<property name="nosamples.runmode" value=",nosamplecontent"/>
<echo message="Setting no samples runmode"/>
</then>
<else>
Expand All @@ -1523,6 +1523,7 @@
<then>
<!-- AEM6.x use case -->
<echo message="Starting in ${demo.mode} run mode, on port ${demo.port} using ${demo.store}..."/>
<echo message="-r ${demo.mode},${demomachine.store}${nosamples.runmode}${dynamicmedia.runmode} ${startup.options}"/>
<antcall target="aem_start_java">
<param name="aem.start.jvmargs" value="${demomachine.jvmargs} ${demomachine.jvmargs.startupmode}"/>
<param name="aem.start.args" value="-r ${demo.mode},${demomachine.store}${nosamples.runmode}${dynamicmedia.runmode} ${startup.options}"/>
Expand Down Expand Up @@ -3330,7 +3331,7 @@
<echo message="Downloading ${download.filename}"/>
<mkdir dir="${dist}/downloads"/>
<exec executable="curl">
<arg line="--basic --user '${demo.download.user}:${demo.download.password}' -s -k -L -o '${dist}/downloads/${download.filename}' ${demo.download.aem.artifactory}${download.artifact}"/>
<arg line="--basic --user '${demo.download.artifactory.user}:${demo.download.artifactory.password}' -s -k -L -o '${dist}/downloads/${download.filename}' ${demo.download.aem.artifactory}${download.artifact}"/>
</exec>
</target>
<!-- Target for installing the FFMPEG software -->
Expand Down Expand Up @@ -8504,6 +8505,21 @@
</else>
</if>
</target>
<target name="demo_enable_crxde">
<exec executable="curl">
<arg line='-u admin:${demo.admin.password} -F "jcr:primaryType=sling:OsgiConfig" -F "alias=/crx/server" -F "dav.create-absolute-uri=true" -F "dav.create-absolute-uri@TypeHint=Boolean"'/>
<arg line="http://${demo.host}:${AdobeAEM.authorport}/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet"/>
</exec>
<if>
<socket server="${demo.host}" port="${AdobeAEM.publishport}"/>
<then>
<exec executable="curl">
<arg line='-u admin:${demo.admin.password} -F "jcr:primaryType=sling:OsgiConfig" -F "alias=/crx/server" -F "dav.create-absolute-uri=true" -F "dav.create-absolute-uri@TypeHint=Boolean"'/>
<arg line="http://${demo.host}:${AdobeAEM.publishport}/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet"/>
</exec>
</then>
</if>
</target>
<target name="demo_encrypt">
<java classname="com.adobe.aem.demomachine.CypherUtils">
<arg line="-f '${encrypt.inputFileName}' -t '${encrypt.outputFileName}' -k '${encrypt.key}'"/>
Expand Down

0 comments on commit 664e14f

Please sign in to comment.