Skip to content

Commit

Permalink
added build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
wwagner4 committed Aug 12, 2016
1 parent a1828d0 commit d6d2564
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,3 +8,4 @@ bin
*.project
core-showcase/.settings
.DS_Store
staging
33 changes: 33 additions & 0 deletions build.xml
@@ -0,0 +1,33 @@
<project name="doctus">
<target name="deploy-showcases">
<exec executable="sbt" >
<arg line="-Dsbt.log.noformat=true fullOptJS"/>
</exec>
<mkdir dir="staging"/>
<copy todir="staging" verbose="true">
<fileset dir="showcase-scalajs/target/scala-2.11">
<include name="showcase-doctus-scalajs-*"/>
</fileset>
</copy>
<copy todir="staging" verbose="true">
<fileset dir="showcase-scalajs">
<include name="showcase-scalajs/*.html"/>
</fileset>
</copy>
<!--
<replace file="staging/index.html"
token="target/scala-2.11/doctuswebaudiotryout-scalajs-fastopt.js"
value="doctuswebaudiotryout-scalajs-opt.js"/>
<scp remotetodir="root@entelijan.net:/var/www/webaudio" keyfile="${user.home}/.ssh/id_rsa">
<fileset dir="staging">
<include name="*"/>
</fileset>
</scp>
-->
</target>
<target name="clean">
<exec executable="sbt" >
<arg line="-Dsbt.log.noformat=true clean"/>
</exec>
</target>
</project>

0 comments on commit d6d2564

Please sign in to comment.