Commits

Zemian Deng committed 3733023

Rm unused scripts/root-war.sh

  • Participants
  • Parent commits 97d7012

Comments (0)

Files changed (1)

scripts/root-war.sh

-#!/usr/bin/env bash
-#
-# Build ROOT.war for openshift JBoss Application's deployment that contains links to other web applications.
-#
-
-SCRIPT_DIR=$(dirname $0)
-PROJ=$1
-if [[ "$PROJ" == "" ]]; then
-	PROJ=$SCRIPT_DIR/target
-fi
-PROJ=$PROJ/ROOT-war
-
-mkdir -p $PROJ/WEB-INF
-echo '<?xml version="1.0"?>
-<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
-</web-app>' > $PROJ/WEB-INF/web.xml
-
-echo '
-<html>
-<body>
-<script type="text/javascript">
-
-  var _gaq = _gaq || [];
-  _gaq.push(["_setAccount", "UA-29830061-2"]);
-  _gaq.push(["_trackPageview"]);
-
-  (function() {
-    var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
-    ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
-    var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
-  })();
-
-</script>
-<h1>TimeMachine Scheduler</h1>
-<ul>
-<li><a href="http://tmschedulerdemo-zdeng.rhcloud.com/scheduler-demo">Scheduler Demo</a></li>
-<li><a href="http://tmschedulersite-zdeng.rhcloud.com/scheduler-site">Scheduler Maven Site Reports</a></li>
-</ul>
-</body>
-</html> 
-' > $PROJ/index.html
-
-if [[ -e $PROJ/../ROOT.war ]]; then
-	rm -vf $PROJ/../ROOT.war
-fi
-jar -cvf $PROJ/../ROOT.war -C $PROJ .
-rm -rf $PROJ
-
-echo "$PROJ/../ROOT.war is created."