You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/07/31 13:16:56 UTC
[15/51] [partial] applying patch related to JIRA STRATOS-12
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml b/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml
deleted file mode 100755
index f5811bf..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<assembly>
- <formats>
- <format>zip</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <fileSets>
- <fileSet>
- <directory>target/wso2carbon-core-${carbon.version}</directory>
- <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
- <excludes>
- <exclude>**/*.sh</exclude>
- <exclude>**/native/*</exclude>
- <exclude>**/services/sample01.aar</exclude>
- <exclude>**/repository/services/version/**</exclude>
- <exclude>**/version.txt</exclude>
- <exclude>**/wso2server.bat</exclude>
- <exclude>**/README.txt</exclude>
- <exclude>**/LICENSE.txt</exclude>
- <exclude>**/INSTALL.txt</exclude>
- <exclude>**/release-notes.html</exclude>
- <exclude>**/carbon.xml</exclude>
- <exclude>**/wsdl2java.*</exclude>
- <exclude>**/java2wsdl.*</exclude>
- <exclude>**/java2wsdl.*</exclude>
- <exclude>**/tcpmon.*</exclude>
- <exclude>**/build.xml</exclude>
- <exclude>**/repository/components/plugins/*.ui*</exclude>
- <exclude>**/log4j.properties</exclude>
- <!--exclude>**/samples/*</exclude-->
- </excludes>
- </fileSet>
-
- <!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
- <fileSet>
- <directory>../p2-profile/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
- <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
- <includes>
- <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
- </includes>
- </fileSet>
- </fileSets>
-
- <dependencySets>
- <!-- use the new tool to create a bundles -->
- <dependencySet>
- <outputDirectory>stratos-s2-agent-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
- <includes>
- <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
- </includes>
- </dependencySet>
- <!--dependencySet>
- <outputDirectory>stratos-s2-agent-${pom.version}/samples/axis2Client/client_repo/modules
- </outputDirectory>
- <includes>
- <include>org.apache.axis2:addressing:mar</include>
- <include>org.apache.rampart:rampart:mar</include>
- <include>org.apache.sandesha2:sandesha2:mar</include>
- </includes>
- <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
- </outputFileNameMapping>
- </dependencySet>
- <dependencySet>
- <outputDirectory>stratos-s2-agent-${pom.version}/samples/axis2Server/repository/modules
- </outputDirectory>
- <includes>
- <include>org.apache.axis2:addressing:mar</include>
- <include>org.apache.rampart:rampart:mar</include>
- <include>org.apache.sandesha2:sandesha2:mar</include>
- </includes>
- <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
- </outputFileNameMapping>
- </dependencySet-->
- <dependencySet>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/axis2/client/lib</outputDirectory>
- <includes>
- <include>bouncycastle:bcprov-jdk15:jar</include>
- </includes>
- <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
- </outputFileNameMapping>
- </dependencySet>
- <dependencySet>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/deployment/client/modules
- </outputDirectory>
- <includes>
- <include>org.apache.rampart:rampart:mar</include>
- </includes>
- </dependencySet>
- <!-- MB Client libs -->
- <dependencySet>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/components/dropins</outputDirectory>
- <includes>
- <include>org.wso2.andes.wso2:andes-client:jar</include>
- <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
- <!--include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
- <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include-->
- </includes>
- </dependencySet>
- </dependencySets>
-
- <files>
- <file>
- <source>src/main/bin/stratos.sh</source>
- <outputDirectory>stratos-s2-agent-${pom.version}/bin</outputDirectory>
- <destName>stratos.sh</destName>
- <fileMode>755</fileMode>
- <filtered>true</filtered>
- </file>
- <file>
- <source>src/main/bin/stratos.bat</source>
- <outputDirectory>stratos-s2-agent-${pom.version}/bin</outputDirectory>
- <destName>stratos.bat</destName>
- <fileMode>755</fileMode>
- <filtered>true</filtered>
- </file>
- <file>
- <source>src/conf/log4j.properties</source>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf</outputDirectory>
- <destName>log4j.properties</destName>
- <filtered>true</filtered>
- </file>
-
-
- <file>
- <source>../../LICENSE.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
- <filtered>true</filtered>
- <fileMode>644</fileMode>
- </file>
- <file>
- <source>../../README.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
- <filtered>true</filtered>
- <fileMode>644</fileMode>
- </file>
- <file>
- <source>../../INSTALL.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
- <filtered>true</filtered>
- <fileMode>644</fileMode>
- </file>
- <file>
- <source>../../docs/xdoc/release-notes.xml</source>
- <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
- <destName>release-notes.html</destName>
- <fileMode>644</fileMode>
- </file>
- <file>
- <source>target/wso2carbon-core-${carbon.version}/bin/version.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}/bin/</outputDirectory>
- <filtered>true</filtered>
- <fileMode>644</fileMode>
- </file>
- <file>
- <source>
- target/wso2carbon-core-${carbon.version}/repository/conf/carbon.xml
- </source>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf/</outputDirectory>
- <filtered>true</filtered>
- </file>
- <file>
- <source>../p2-profile/target/wso2carbon-core-${carbon.version}/repository/conf/agent.properties</source>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf</outputDirectory>
- </file>
- </files>
-</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml b/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml
deleted file mode 100644
index f99841a..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<assembly>
- <formats>
- <format>zip</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <fileSets>
- <!-- Copying p2 profile and osgi bundles-->
- <fileSet>
- <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
- <outputDirectory>stratos-s2-agent-${pom.version}/repository/components</outputDirectory>
- <excludes>
- <exclude>**/eclipse.ini</exclude>
- <exclude>**/*.lock</exclude>
- <exclude>**/.data</exclude>
- <exclude>**/.settings</exclude>
- <exclude>**/synapse-samples*</exclude>
- </excludes>
- </fileSet>
- </fileSets>
-</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml b/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml
deleted file mode 100644
index bb2d975..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<assembly>
- <id>docs</id>
- <formats>
- <format>zip</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <fileSets>
- <fileSet>
- <directory>target/site</directory>
- <outputDirectory>stratos-s2-agent-${pom.version}-docs</outputDirectory>
- <fileMode>755</fileMode>
- </fileSet>
- </fileSets>
-</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties b/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties
deleted file mode 100644
index f10f62d..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# 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.
-#
-
-product.name=Apache Stratos Agent
-product.key=Agent
-product.version=1.0.0
-
-carbon.version=4.1.1
-lb.version=1.0.0
-default.server.role=ElasticLoadBalancer
-bundle.creators=org.wso2.carbon.mediator.bridge.MediatorBundleCreator
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/src.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/src.xml b/products/stratos_agent/modules/distribution/src/main/assembly/src.xml
deleted file mode 100644
index 028c390..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/src.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<assembly>
- <id>src</id>
- <includeBaseDirectory>false</includeBaseDirectory>
- <formats>
- <format>zip</format>
- </formats>
-
- <fileSets>
- <fileSet>
- <directory>target/sources</directory>
- <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
- <includes>
- <include>**/*</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>../..</directory>
- <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
- <includes>
- <include>modules/**/*</include>
- <include>**/pom.xml</include>
- </includes>
- <excludes>
- <exclude>**/target</exclude>
- <exclude>**/target/**/*</exclude>
- <exclude>**/build</exclude>
- <exclude>**/build/**/*</exclude>
- <exclude>**/.settings</exclude>
- <exclude>**/.classpath</exclude>
- <exclude>**/.project</exclude>
- <exclude>**/.wtpmodules</exclude>
- <exclude>**/*.iml</exclude>
- <exclude>**/.settings</exclude>
- <exclude>**/.settings/**/*</exclude>
- </excludes>
- </fileSet>
- </fileSets>
- <files>
- <file>
- <source>../../LICENSE.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
- <filtered>true</filtered>
- </file>
- <file>
- <source>../../README.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
- <filtered>true</filtered>
- </file>
- <file>
- <source>../../INSTALL.txt</source>
- <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
- <filtered>true</filtered>
- </file>
- </files>
-</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat b/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat
deleted file mode 100644
index 989483f..0000000
--- a/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat
+++ /dev/null
@@ -1,169 +0,0 @@
-@echo off
-
-rem ---------------------------------------------------------------------------
-rem Licensed to the Apache Software Foundation (ASF) under one
-rem or more contributor license agreements. See the NOTICE file
-rem distributed with this work for additional information
-rem regarding copyright ownership. The ASF licenses this file
-rem to you under the Apache License, Version 2.0 (the
-rem "License"); you may not use this file except in compliance
-rem with the License. You may obtain a copy of the License at
-rem
-rem http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem Unless required by applicable law or agreed to in writing,
-rem software distributed under the License is distributed on an
-rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-rem KIND, either express or implied. See the License for the
-rem specific language governing permissions and limitations
-rem under the License.
-rem ---------------------------------------------------------------------------
-rem Main Script for Apache Stratos
-rem
-rem Environment Variable Prerequisites
-rem
-rem JAVA_HOME Must point at your Java Development Kit installation.
-rem
-rem JAVA_OPTS (Optional) Java runtime options used when the commands
-rem is executed.
-rem ---------------------------------------------------------------------------
-
-rem ----- if JAVA_HOME is not set we're not happy ------------------------------
-:checkJava
-
-if "%JAVA_HOME%" == "" goto noJavaHome
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
-goto checkServer
-
-:noJavaHome
-echo "You must set the JAVA_HOME variable before running CARBON."
-goto end
-
-rem ----- Only set CARBON_HOME if not already set ----------------------------
-:checkServer
-rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
-if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
-SET curDrive=%cd:~0,1%
-SET wsasDrive=%CARBON_HOME:~0,1%
-if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
-
-rem find CARBON_HOME if it does not exist due to either an invalid value passed
-rem by the user or the %0 problem on Windows 9x
-if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
-
-set AXIS2_HOME=%CARBON_HOME%
-goto updateClasspath
-
-:noServerHome
-echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
-goto end
-
-rem ----- update classpath -----------------------------------------------------
-:updateClasspath
-
-setlocal EnableDelayedExpansion
-cd %CARBON_HOME%
-set CARBON_CLASSPATH=
-FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
-
-set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
-
-FOR %%D in ("%CARBON_HOME%\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nD%%~xD"
-
-rem ----- Process the input command -------------------------------------------
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-
-
-:setupArgs
-if ""%1""=="""" goto doneStart
-
-if ""%1""==""-run"" goto commandLifecycle
-if ""%1""==""--run"" goto commandLifecycle
-if ""%1""==""run"" goto commandLifecycle
-
-if ""%1""==""-restart"" goto commandLifecycle
-if ""%1""==""--restart"" goto commandLifecycle
-if ""%1""==""restart"" goto commandLifecycle
-
-if ""%1""==""debug"" goto commandDebug
-if ""%1""==""-debug"" goto commandDebug
-if ""%1""==""--debug"" goto commandDebug
-
-if ""%1""==""version"" goto commandVersion
-if ""%1""==""-version"" goto commandVersion
-if ""%1""==""--version"" goto commandVersion
-
-shift
-goto setupArgs
-
-rem ----- commandVersion -------------------------------------------------------
-:commandVersion
-shift
-type "%CARBON_HOME%\bin\version.txt"
-type "%CARBON_HOME%\bin\wso2carbon-version.txt"
-goto end
-
-rem ----- commandDebug ---------------------------------------------------------
-:commandDebug
-shift
-set DEBUG_PORT=%1
-if "%DEBUG_PORT%"=="" goto noDebugPort
-if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
-set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
-echo Please start the remote debugging client to continue...
-goto findJdk
-
-:noDebugPort
-echo Please specify the debug port after the --debug option
-goto end
-
-
-:doneStart
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-rem ---------- Handle the SSL Issue with proper JDK version --------------------
-rem find the version of the jdk
-:findJdk
-
-set CMD=RUN %*
-
-:checkJdk16
-"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
-IF ERRORLEVEL 1 goto unknownJdk
-goto jdk16
-
-:unknownJdk
-echo Starting WSO2 Carbon (in unsupported JDK)
-echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
-goto jdk16
-
-:jdk16
-goto runServer
-
-rem ----------------- Execute The Requested Command ----------------------------
-
-:runServer
-cd %CARBON_HOME%
-
-rem ---------- Add jars to classpath ----------------
-
-set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
-
-set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
-
-set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms1500m -Xmx3000m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%CARBON_HOME%\repository\logs\heap-dump.hprof -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dloadbalancer.conf="file:///%CARBON_HOME%/repository/conf/loadbalancer.conf" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -
Dcarbon.config.dir.path="%CARBON_HOME%\repository\conf" -Dconf.location="%CARBON_HOME%\repository\conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repository\components" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8
-
-:runJava
-echo JAVA_HOME environment variable is set to %JAVA_HOME%
-echo CARBON_HOME environment variable is set to %CARBON_HOME%
-"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
-if "%ERRORLEVEL%"=="121" goto runJava
-:end
-goto endlocal
-
-:endlocal
-
-:END
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh b/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh
deleted file mode 100644
index 4c6260c..0000000
--- a/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh
+++ /dev/null
@@ -1,298 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------
-# Main Script for the Apache Stratos
-#
-# Environment Variable Prerequisites
-#
-# JAVA_HOME Must point at your Java Development Kit installation.
-#
-# JAVA_OPTS (Optional) Java runtime options used when the commands
-# is executed.
-#
-# NOTE: Borrowed generously from Apache Tomcat startup scripts.
-# -----------------------------------------------------------------------------
-
-# OS specific support. $var _must_ be set to either true or false.
-
-cygwin=false;
-darwin=false;
-os400=false;
-mingw=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-MINGW*) mingw=true;;
-OS400*) os400=true;;
-Darwin*) darwin=true
- if [ -z "$JAVA_VERSION" ] ; then
- JAVA_VERSION="CurrentJDK"
- else
- echo "Using Java version: $JAVA_VERSION"
- fi
- if [ -z "$JAVA_HOME" ] ; then
- JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
- fi
- ;;
-esac
-
-# resolve links - $0 may be a softlink
-PRG="$0"
-
-while [ -h "$PRG" ]; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`/"$link"
- fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$PRG"`
-
-# Only set CARBON_HOME if not already set
-[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
-
-# Set AXIS2_HOME. Needed for One Click JAR Download
-AXIS2_HOME=$CARBON_HOME
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin; then
- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
- [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-fi
-
-# For OS400
-if $os400; then
- # Set job priority to standard for interactive (interactive - 6) by using
- # the interactive priority - 6, the helper threads that respond to requests
- # will be running at the same priority as interactive jobs.
- COMMAND='chgjob job('$JOBNAME') runpty(6)'
- system $COMMAND
-
- # Enable multi threading
- QIBM_MULTI_THREADED=Y
- export QIBM_MULTI_THREADED
-fi
-
-# For Migwn, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$CARBON_HOME" ] &&
- CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- [ -n "$AXIS2_HOME" ] &&
- CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD=java
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly."
- echo " CARBON cannot execute $JAVACMD"
- exit 1
-fi
-
-# if JAVA_HOME is not set we're not happy
-if [ -z "$JAVA_HOME" ]; then
- echo "You must set the JAVA_HOME variable before running CARBON."
- exit 1
-fi
-
-# ----- Process the input command ----------------------------------------------
-for c in $*
-do
- if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
- CMD="--debug"
- continue
- elif [ "$CMD" = "--debug" ]; then
- if [ -z "$PORT" ]; then
- PORT=$c
- fi
- elif [ "$c" = "--n" ] || [ "$c" = "-n" ] || [ "$c" = "n" ]; then
- CMD="--n"
- continue
- elif [ "$CMD" = "--n" ]; then
- if [ -z "$INSTANCES" ]; then
- INSTANCES=$c
- fi
- elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
- CMD="stop"
- elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
- CMD="start"
- elif [ "$c" = "--console" ] || [ "$c" = "-console" ] || [ "$c" = "console" ]; then
- CMD="console"
- elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
- CMD="version"
- elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
- CMD="restart"
- elif [ "$c" = "--dump" ] || [ "$c" = "-dump" ] || [ "$c" = "dump" ]; then
- CMD="dump"
- elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
- CMD="test"
- elif [ "$c" = "--status" ] || [ "$c" = "-status" ] || [ "$c" = "status" ]; then
- CMD="status"
- fi
-done
-
-if [ "$CMD" = "--debug" ]; then
- if [ "$PORT" = "" ]; then
- echo " Please specify the debug port after the --debug option"
- exit 1
- fi
- if [ -n "$JAVA_OPTS" ]; then
- echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
- fi
- CMD="RUN"
- JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
- echo "Please start the remote debugging client to continue..."
-elif [ "$CMD" = "--n" ]; then
- if [ "$INSTANCES" = "" ] || [ ! -z `echo $INSTANCES | sed 's/[0-9]//g'` ]]; then
- echo " Please specify the number of instances to start after the --n option"
- exit 1
- fi
-elif [ "$CMD" = "start" ]; then
- export CARBON_HOME=$CARBON_HOME
- nohup $CARBON_HOME/bin/stratos.sh &
- exit 0
-elif [ "$CMD" = "stop" ]; then
- export CARBON_HOME=$CARBON_HOME
- kill -9 `cat $CARBON_HOME/wso2carbon.pid`
- exit 0
-elif [ "$CMD" = "restart" ]; then
- export CARBON_HOME=$CARBON_HOME
- kill -term `cat $CARBON_HOME/wso2carbon.pid`
- process_status=0
- pid=`cat $CARBON_HOME/wso2carbon.pid`
- while [ "$process_status" -eq "0" ]
- do
- sleep 1;
- ps -p$pid 2>&1 > /dev/null
- process_status=$?
- done
-
- # using nohup bash to avoid erros in solaris OS.TODO
- nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
- exit 0
-elif [ "$CMD" = "test" ]; then
- JAVACMD="exec "$JAVACMD""
-elif [ "$CMD" = "version" ]; then
- cat $CARBON_HOME/bin/version.txt
- cat $CARBON_HOME/bin/wso2carbon-version.txt
- exit 0
-fi
-
-jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
-
-if [ "$jdk_16" = "" ]; then
- echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
- exit 1
-fi
-
-CARBON_CLASSPATH=""
-if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
- if [ "$f" != "$JAVA_HOME/lib/tools.jar" ];then
- CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
- fi
-fi
-
-CARBON_XBOOTCLASSPATH=""
-for f in "$CARBON_HOME"/lib/xboot/*.jar
-do
- if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
- CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
- fi
-done
-
-JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
-
-for f in "$CARBON_HOME"/bin/*.jar
-do
- if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
- CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
- fi
-done
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
- CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
- AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
- CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
- CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo JAVA_HOME environment variable is set to $JAVA_HOME
-echo CARBON_HOME environment variable is set to $CARBON_HOME
-
-cd "$CARBON_HOME"
-
-exec "$JAVACMD" \
- -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
- -d64 \
- -server \
- -Xms1500m -Xmx3000m \
- -XX:PermSize=256m -XX:MaxPermSize=512m \
- -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit \
- -XX:+CMSClassUnloadingEnabled \
- -XX:+OptimizeStringConcat \
- -XX:+HeapDumpOnOutOfMemoryError \
- -XX:OnOutOfMemoryError="kill -9 `echo $$`;nohup ./stratos.sh &" \
- -XX:HeapDumpPath=repository/logs/heap-dump.hprof \
- -XX:ErrorFile=repository/logs/hs_err_pid.log \
- -XX:OnError="nohup ./stratos.sh &" \
- $JAVA_OPTS \
- -Dcarbon.pid=$$ \
- -Dcom.sun.management.jmxremote \
- -Dwso2.loadbalancer=true \
- -classpath "$CARBON_CLASSPATH" \
- -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
- -Djava.io.tmpdir="$CARBON_HOME/tmp" \
- -Dwso2.server.standalone=true \
- -Dcarbon.registry.root=/ \
- -Dcarbon.home="$CARBON_HOME" \
- -Dloadbalancer.conf=file:repository/conf/loadbalancer.conf \
- -Djava.util.logging.config.file="$CARBON_HOME/lib/log4j.properties" \
- -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
- -Dconf.location="$CARBON_HOME/repository/conf" \
- -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
- -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
- -Dcom.atomikos.icatch.hide_init_file_path=true \
- -Dorg.terracotta.quartz.skipUpdateCheck=true \
- org.wso2.carbon.bootstrap.Bootstrap $*
-
-
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/p2-profile/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/p2-profile/pom.xml b/products/stratos_agent/modules/p2-profile/pom.xml
deleted file mode 100755
index ebd4b82..0000000
--- a/products/stratos_agent/modules/p2-profile/pom.xml
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.apache.stratos</groupId>
- <artifactId>stratos-agent-parent</artifactId>
- <version>3.0.0-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>wso2agent-p2-profile-gen</artifactId>
- <packaging>pom</packaging>
- <name>Apache Stratos - Agent - P2 Profile Generation</name>
- <url>http://www.wso2.org</url>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.0-alpha-4</version>
- <inherited>false</inherited>
- <executions>
- <execution>
- <id>unpack-carbon-core</id>
- <phase>test</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.wso2.carbon</groupId>
- <artifactId>wso2carbon-core</artifactId>
- <version>${carbon.kernel.version}</version>
- <type>zip</type>
- <overWrite>true</overWrite>
- <outputDirectory>target</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- <execution>
- <id>2-unpack-kernel-patch</id>
- <phase>test</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.wso2.carbon</groupId>
- <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
- <version>0002</version>
- <type>zip</type>
- <overWrite>true</overWrite>
- <outputDirectory>target</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.wso2.maven</groupId>
- <artifactId>carbon-p2-plugin</artifactId>
- <version>${carbon.p2.plugin.version}</version>
- <executions>
- <execution>
- <id>2-p2-repo-generation</id>
- <phase>package</phase>
- <goals>
- <goal>p2-repo-gen</goal>
- </goals>
- <configuration>
- <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
- <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
- <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
- <publishArtifacts>true</publishArtifacts>
- <publishArtifactRepository>true</publishArtifactRepository>
- <featureArtifacts>
- <featureArtifactDef>
- org.wso2.carbon:org.wso2.carbon.cartridge.messages.feature:${stratos2.platform.patch.version}
- </featureArtifactDef>
- <featureArtifactDef>
- org.wso2.carbon:org.wso2.carbon.cartridge.agent.server.feature:2.1.3
- </featureArtifactDef>
- <featureArtifactDef>
- org.wso2.carbon:org.wso2.carbon.lb.common.feature:4.1.3
- </featureArtifactDef>
- <featureArtifactDef>
- org.wso2.carbon:org.apache.synapse.wso2.feature:2.1.1-wso2v4
- </featureArtifactDef>
- </featureArtifacts>
- </configuration>
- </execution>
- <execution>
- <id>3-p2-profile-generation</id>
- <phase>package</phase>
- <goals>
- <goal>p2-profile-gen</goal>
- </goals>
- <configuration>
- <profile>WSO2CarbonProfile</profile>
- <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
- <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
- <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
- <destination>
- ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
- </destination>
- <deleteOldProfileFiles>true</deleteOldProfileFiles>
- <features>
- <feature>
- <id>org.wso2.carbon.cartridge.messages.feature.group</id>
- <version>${stratos2.platform.patch.version}</version>
- </feature>
- <feature>
- <id>org.wso2.carbon.cartridge.agent.server.feature.group</id>
- <version>2.1.3</version>
- </feature>
- <feature>
- <id>org.wso2.carbon.lb.common.feature.group</id>
- <version>4.1.3</version>
- </feature>
- <feature>
- <id>org.apache.synapse.wso2.feature.group</id>
- <version>2.1.1-wso2v4</version>
- </feature>
- </features>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <phase>package</phase>
- <configuration>
- <tasks>
- <replace token="false" value="true"
- dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
- <include name="**/bundles.info"/>
- </replace>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/pom.xml b/products/stratos_agent/pom.xml
deleted file mode 100755
index bf40e5c..0000000
--- a/products/stratos_agent/pom.xml
+++ /dev/null
@@ -1,213 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- ~ 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.
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.apache.stratos</groupId>
- <artifactId>stratos-products-parent</artifactId>
- <version>3.0.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.stratos</groupId>
- <artifactId>stratos-agent-parent</artifactId>
- <packaging>pom</packaging>
- <version>3.0.0-SNAPSHOT</version>
- <name>Apache Stratos - Agent - Aggregator Module</name>
- <url>http://apache.org</url>
- <description>Apache Stratos Agent (S2agent)</description>
-
- <licenses>
- <license>
- <name>Apache License Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0</url>
- </license>
- </licenses>
-
- <modules>
- <module>modules/p2-profile</module>
- <module>modules/distribution</module>
- <!--<module>modules/integration</module>-->
- </modules>
-
- <scm>
- <connection>scm:svn:http://wso2.org/repos/wso2/trunk/carbon/products/lb</connection>
- <developerConnection>scm:svn:https://wso2.org/repos/wso2/trunk/carbon/products/lb</developerConnection>
- <url>https://wso2.org/repos/wso2/trunk/carbon/products/lb</url>
- </scm>
-
- <repositories>
- <repository>
- <id>wso2-nexus</id>
- <name>WSO2 internal Repository</name>
- <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>ignore</checksumPolicy>
- </releases>
- </repository>
- <!--moved to nexus
-
- <repository>
- <id>wso2-maven2-repository-snapshot</id>
- <url>http://dist.wso2.org/snapshots/maven2</url>
- </repository>
- <repository>
- <id>wso2-maven2-repository</id>
- <url>http://dist.wso2.org/maven2</url>
- </repository>
-
- -->
- </repositories>
-
- <pluginRepositories>
- <pluginRepository>
- <id>wso2-maven2-repository</id>
- <url>http://dist.wso2.org/maven2</url>
- </pluginRepository>
- </pluginRepositories>
-
- <distributionManagement>
- <repository>
- <id>wso2-maven2-repository</id>
- <name>WSO2 Maven2 Repository</name>
- <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
- </repository>
- <snapshotRepository>
- <id>wso2-maven2-snapshot-repository</id>
- <name>WSO2 Maven2 Snapshot Repository</name>
- <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url>
- </snapshotRepository>
- </distributionManagement>
-
- <profiles>
- <profile>
- <id>signed-build</id>
- <activation>
- <property>
- <name>sign</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.0-alpha-3</version>
- <executions>
- <execution>
- <id>sign-artifacts</id>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
- <organization>
- <name>WSO2 Inc</name>
- <url>http://wso2.com</url>
- </organization>
-
- <issueManagement>
- <system>JIRA</system>
- <url>http://wso2.org/jira/browse/LB</url>
- </issueManagement>
-
- <mailingLists>
- <mailingList>
- <name>WSO2 LB Users' list</name>
- <post>mailto:lb-user@wso2.org</post>
- <archive>http://wso2.org/mailarchive/lb-user/</archive>
- <subscribe>mailto:lb-user-request@wso2.org?subject=subscribe</subscribe>
- <unsubscribe>mailto:lb-user-request@wso2.org?subject=unsubscribe</unsubscribe>
- </mailingList>
- <mailingList>
- <name>WSO2 LB/Carbon Developers' List</name>
- <post>mailto:dev@wso2.org</post>
- <archive>http://wso2.org/mailarchive/dev/</archive>
- <subscribe>mailto:dev-request@wso2.org?subject=subscribe</subscribe>
- <unsubscribe>mailto:dev-request@wso2.org?subject=unsubscribe</unsubscribe>
- </mailingList>
- </mailingLists>
-
- <dependencyManagement>
- <dependencies>
- <!-- Dependencies for dashboard ui -->
- <dependency>
- <groupId>org.apache.axis2.wso2</groupId>
- <artifactId>axis2</artifactId>
- <version>${axis2.wso2.version}</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>${log4j.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>${commons.logging.version}</version>
- </dependency>
- <!-- Dependencies for login ui -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>${servlet-api.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ws.commons.axiom.wso2</groupId>
- <artifactId>axiom</artifactId>
- <version>${axiom.wso2.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <log4j.version>1.2.17</log4j.version>
- <commons.logging.version>1.1</commons.logging.version>
- <opencsv.version>1.8</opencsv.version>
- <poi.version>3.0-FINAL</poi.version>
- <carbon.version>4.1.0</carbon.version>
- <carbon.kernel.version>4.1.0</carbon.kernel.version>
- <carbon.p2.plugin.version>1.5.2</carbon.p2.plugin.version>
- <stratos2.platform.patch.version>2.1.1</stratos2.platform.patch.version>
- <synapse.version>2.1.1-wso2v4</synapse.version>
- <axis2.transport.version>1.1.0-wso2v6</axis2.transport.version>
- <elb.version>2.0.3</elb.version>
- <passthru.transport.version>1.0.2</passthru.transport.version>
- <axis2.wso2.version>1.6.1.wso2v7</axis2.wso2.version>
- <axiom.wso2.version>1.2.11.wso2v2</axiom.wso2.version>
- <servlet-api.version>2.4</servlet-api.version>
- <log4j.version>1.2.17</log4j.version>
- <commons.logging.version>1.1</commons.logging.version>
- </properties>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos_cli/LICENSE.txt b/products/stratos_cli/LICENSE.txt
deleted file mode 100644
index 4287729..0000000
--- a/products/stratos_cli/LICENSE.txt
+++ /dev/null
@@ -1,46 +0,0 @@
-
-This product is licensed by Apache under Apache License 2.0. The license
-can be downloaded from the following locations:
- http://www.apache.org/licenses/LICENSE-2.0.html
- http://www.apache.org/licenses/LICENSE-2.0.txt
-
-This product also contains software under different licenses.
-
-Following are the dependencies for this product.
-
-Artifact Version
-----------------------------------------------------------------------
-avalon-framework:avalon-framework 4.1.3
-com.google.code.gson:gson 2.1
-commons-beanutils:commons-beanutils 1.8.0
-commons-cli:commons-cli 1.2
-commons-codec:commons-codec 1.2
-commons-digester:commons-digester 1.8
-commons-httpclient:commons-httpclient 3.0.1
-commons-io:commons-io 2.0
-commons-logging:commons-logging 1.1
-commons-validator:commons-validator 1.4.0
-javax.servlet:servlet-api 2.3
-jaxen:jaxen 1.1.1
-jline:jline 2.11
-log4j:log4j 1.2.13
-logkit:logkit 1.0.1
-org.apache.axis2.wso2:axis2 1.6.1.wso2v9
-org.apache.commons:commons-lang3 3.1
-org.apache.geronimo.specs:geronimo-activation_1.1_spec 1.0.2
-org.apache.geronimo.specs:geronimo-javamail_1.4_spec 1.6
-org.apache.geronimo.specs:geronimo-stax-api_1.0_spec 1.0.1
-org.apache.httpcomponents.wso2:httpcore 4.1.0-wso2v1
-org.apache.neethi.wso2:neethi 2.0.4.wso2v4
-org.apache.ws.commons.axiom:axiom-api 1.2.11-wso2v2
-org.apache.ws.commons.axiom:axiom-impl 1.2.11-wso2v2
-org.apache.ws.commons.axiom.wso2:axiom 1.2.11.wso2v4
-org.apache.ws.commons.schema:XmlSchema 1.4.3
-org.apache.ws.commons.schema.wso2:XmlSchema 1.4.7.wso2v2
-org.codehaus.woodstox:wstx-asl 3.2.9
-org.slf4j:slf4j-api 1.7.5
-org.slf4j:slf4j-log4j12 1.7.5
-org.apache.stratos:org.apache.stratos.adc.mgt.stub 4.1.3
-org.wso2.securevault:org.wso2.securevault 1.0.0-wso2v2
-wsdl4j:wsdl4j 1.6.2
-wsdl4j.wso2:wsdl4j 1.6.2.wso2v2
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos_cli/README.txt b/products/stratos_cli/README.txt
deleted file mode 100755
index 4750af5..0000000
--- a/products/stratos_cli/README.txt
+++ /dev/null
@@ -1,111 +0,0 @@
-================================================================================
- Apache Stratos CLI v1.0.1
-================================================================================
-
-Welcome to the Apache Stratos CLI release
-
-The command line interface (CLI) is a powerful tool that clients can use
-to communicate with Stratos services.
-
-The tenant can use the CLI tool on two separate modes if needed, which
-are namely single command line mode and interactive mode.
-
-If the user executes with a command as an argument, the CLI tool
-will execute that command and exit with a status code.
-
-However, if there is no command as an argument, the CLI tool will
-enter into an interactive mode.
-
-A user will be able to carryout all the following functions via the
-CLI, with the exception of registering tenants and viewing logs.
-
-The CLI tool also supports command history and auto-completing features
-in the interactive mode.
-
-Help
-==================================
-usage: stratos [-debug] [-h] [-p <password>] [-trace] [-u <username>]
- -debug Enable debug logging
- -h,--help Display this help
- -p,--password <password> Password
- -trace Enable trace logging
- -u,--username <username> Username
-
-
-Available Commands:
-add-domain-mapping Map domain for the subscribed cartridge
-help Help for commands
-subscribe Subscribe to a cartridge
-sync Synchronize GIT repository for the subscribed cartridge
-remove-domain-mapping Remove domain mapping for the subscribed cartridge
-list List subscribed cartridges with details
-unsubscribe Unsubscribe from a subscribed cartridge
-policies List available policies
-exit Exit from Stratos Client Tool
-info Get information about a subscribed cartridge
-cartridges List available cartridges
-
-
-Installation & Running
-==================================
-
-1. Extract the zip and go to the extracted directory
-
-Add execute permission to the script in Linux.
-chmod +x ./stratos.sh
-
-2. Export the host and port of the SC as environment variables
-
-Linux:
-export STRATOS_URL=https://s2demo.apache.com:9445
-
-Windows:
-set STRATOS_URL=https://s2demo.apache.com:9445
-
-3. Run the stratos.sh or stratos.bat as appropriate
-
-4. Export the following environment variables.
-
-Linux: (Add to your bashrc file)
-export JAVA_HOME=/opt/jdk1.6.0_24
-export PATH=$JAVA_HOME/bin:$PATH
-
-Windows: (Set in System Properties)
-set JAVA_HOME=C:\Java\jdk1.6.0_24
-set PATH=%JAVA_HOME%\bin;%PATH%
-
-4. Use the tentant username and password to login
-
-If you wish, you can also export your username and password as environment variables.
-If you export only the username, you will be prompted to enter the password.
-
-Linux:
-export STRATOS_USERNAME=<username>
-export STRATOS_PASSWORD=<password>
-
-Windows:
-set STRATOS_USERNAME=<username>
-set STRATOS_PASSWORD=<password>
-
-
-Support
-==================================
-
-Any problem with this release can be reported to Apache Stratos mailing list
-or in the JIRA issue tracker. If you are sending an email to the mailing
-list make sure to add the [Apache Stratos] prefix to the subject.
-
-Mailing list subscription:
- dev-subscribe@stratos.incubator.apache.org
-
-
-Issue Tracker
-==================================
-
-Jira:
- https://issues.apache.org/jira/browse/stratos
-
-
-Thank you for using Apache Stratos!
-The Stratos Team.
-
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/pom.xml b/products/stratos_cli/distribution/pom.xml
deleted file mode 100644
index ee37542..0000000
--- a/products/stratos_cli/distribution/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.apache.stratos</groupId>
- <artifactId>apache-stratos-cli-parent</artifactId>
- <version>3.0.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>apache-stratos-cli</artifactId>
- <packaging>pom</packaging>
- <name>Apache Stratos - CLI</name>
- <url>http://apache.org/</url>
- <description>Apache Stratos CLI Distribution</description>
-
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>1-pre_dist</id>
- <phase>test</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>src/main/assembly/bin.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/assembly/bin.xml b/products/stratos_cli/distribution/src/main/assembly/bin.xml
deleted file mode 100644
index a3bf082..0000000
--- a/products/stratos_cli/distribution/src/main/assembly/bin.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<assembly>
- <formats>
- <format>zip</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
-
- <fileSets>
- <fileSet>
- <directory>../../../components/org.apache.stratos.cli/target</directory>
- <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
- <includes>
- <include>org.apache.stratos.cli-${pom.version}-Tool.jar</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>src/main/bin</directory>
- <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
- <includes>
- <include>stratos.sh</include>
- </includes>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>src/main/bin</directory>
- <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
- <includes>
- <include>stratos.bat</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>../</directory>
- <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
- <includes>
- <include>README.txt</include>
- <include>LICENSE.txt</include>
- </includes>
- </fileSet>
- </fileSets>
-</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/bin/stratos.bat b/products/stratos_cli/distribution/src/main/bin/stratos.bat
deleted file mode 100644
index 9bf9523..0000000
--- a/products/stratos_cli/distribution/src/main/bin/stratos.bat
+++ /dev/null
@@ -1,36 +0,0 @@
-@echo off
-rem ---------------------------------------------------------------------------
-rem Licensed to the Apache Software Foundation (ASF) under one
-rem or more contributor license agreements. See the NOTICE file
-rem distributed with this work for additional information
-rem regarding copyright ownership. The ASF licenses this file
-rem to you under the Apache License, Version 2.0 (the
-rem "License"); you may not use this file except in compliance
-rem with the License. You may obtain a copy of the License at
-rem
-rem http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem Unless required by applicable law or agreed to in writing,
-rem software distributed under the License is distributed on an
-rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-rem KIND, either express or implied. See the License for the
-rem specific language governing permissions and limitations
-rem under the License.
-rem ---------------------------------------------------------------------------
-rem Main Script for Apache Stratos CLI
-rem
-rem Environment Variable Prequisites
-rem
-rem STRATOS_CLI_HOME Home of Stratos CLI Tool
-rem
-rem STRATOS_URL The URL of the Stratos Controller
-rem ---------------------------------------------------------------------------
-
-rem ----- Only set STRATOS_CLI_HOME if not already set ----------------------------
-
-if "%STRATOS_CLI_HOME%"=="" set STRATOS_CLI_HOME=%CD%
-
-cd %STRATOS_CLI_HOME%
-
-java -jar "org.apache.stratos.cli-3.0.0-SNAPSHOT-Tool.jar" %*
-
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/bin/stratos.sh b/products/stratos_cli/distribution/src/main/bin/stratos.sh
deleted file mode 100755
index 7622f40..0000000
--- a/products/stratos_cli/distribution/src/main/bin/stratos.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------
-# Main Script for the Apache Stratos CLI Tool
-#
-# Environment Variable Prerequisites
-#
-# STRATOS_CLI_HOME Home of Stratos CLI Tool
-#
-# STRATOS_URL The URL of the Stratos Controller
-
-if [ -z $STRATOS_CLI_HOME ] ; then
-STRATOS_CLI_HOME="$PWD"
-fi
-
-java -jar $STRATOS_CLI_HOME/org.apache.stratos.cli-3.0.0-SNAPSHOT-Tool.jar $*
-
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/bin/version.txt
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/bin/version.txt b/products/stratos_cli/distribution/src/main/bin/version.txt
deleted file mode 100644
index e740fa4..0000000
--- a/products/stratos_cli/distribution/src/main/bin/version.txt
+++ /dev/null
@@ -1 +0,0 @@
-Apache Stratos CLI 3.0.0-SNAPSHOT
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_cli/pom.xml b/products/stratos_cli/pom.xml
deleted file mode 100644
index db37994..0000000
--- a/products/stratos_cli/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- ~ 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.
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.apache.stratos</groupId>
- <artifactId>stratos-products-parent</artifactId>
- <version>3.0.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>apache-stratos-cli-parent</artifactId>
- <packaging>pom</packaging>
- <name>Apache Stratos - CLI - Distribution</name>
- <url>http://apache.org</url>
- <description>Apache Stratos CLI</description>
-
-
- <modules>
- <module>
- distribution
- </module>
- </modules>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/billing-h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/billing-h2.sql b/products/stratos_controller/billing-script/billing-h2.sql
deleted file mode 100755
index e70be14..0000000
--- a/products/stratos_controller/billing-script/billing-h2.sql
+++ /dev/null
@@ -1,109 +0,0 @@
-CREATE TABLE IF NOT EXISTS BC_CUSTOMER (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_NAME VARCHAR (64),
- BC_STARTED_DATE TIMESTAMP,
- BC_EMAIL VARCHAR (64),
- BC_ADDRESS VARCHAR (256),
- CONSTRAINT PK_BC_CUSTOMER PRIMARY KEY (BC_ID)
-);
-
-CREATE HASH INDEX BC_CUSTOMER_IND_BY_BC_NAME ON BC_CUSTOMER(BC_NAME);
-CREATE HASH INDEX BC_CUSTOMER_IND_BY_BC_EMAIL ON BC_CUSTOMER(BC_EMAIL);
-
-CREATE TABLE IF NOT EXISTS BC_ITEM (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_NAME VARCHAR (64),
- BC_COST VARCHAR (64),
- BC_DESCRIPTION VARCHAR(128),
- BC_PARENT_ITEM_ID INTEGER,
- CONSTRAINT PK_BC_ITEM PRIMARY KEY (BC_ID)
-);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Demo',NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('SMB',NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Professional',NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Enterprise',NULL,NULL,NULL);
-
-ALTER TABLE BC_ITEM ADD CONSTRAINT IF NOT EXISTS BC_ITEM_FK_BY_PARENT_ITEM_ID FOREIGN KEY (BC_PARENT_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_SUBSCRIPTION (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_FILTER VARCHAR (32),
- BC_IS_ACTIVE INTEGER,
- BC_ACTIVE_SINCE TIMESTAMP,
- BC_ACTIVE_UNTIL TIMESTAMP,
- BC_ITEM_ID INTEGER,
- BC_TENANT_ID INTEGER,
- CONSTRAINT PK_BC_SUBSCRIPTION PRIMARY KEY (BC_ID)
-);
-
-ALTER TABLE BC_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_SUBSCRIPTION_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_TENANT_ID INTEGER,
- BC_DATE TIMESTAMP,
- BC_START_DATE TIMESTAMP,
- BC_END_DATE TIMESTAMP,
- BC_BOUGHT_FORWARD VARCHAR (64),
- BC_CARRIED_FORWARD VARCHAR (64),
- BC_TOTAL_PAYMENTS VARCHAR (64),
- BC_TOTAL_COST VARCHAR (64),
- CONSTRAINT PK_BC_INVOICE PRIMARY KEY (BC_ID)
-);
-
-
-CREATE TABLE IF NOT EXISTS BC_PAYMENT (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_DATE TIMESTAMP,
- BC_AMOUNT VARCHAR (64),
- BC_DESCRIPTION VARCHAR (128),
- BC_INVOICE_ID INTEGER,
- BC_TENANT_ID INTEGER,
- CONSTRAINT PK_BC_PAYMENT PRIMARY KEY (BC_ID)
-);
-
-ALTER TABLE BC_PAYMENT ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-
--- this is n-n relationship
-CREATE TABLE IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION (
- BC_PAYMENT_ID INTEGER,
- BC_SUBSCRIPTION_ID INTEGER,
- CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_PAYMENT_ID, BC_SUBSCRIPTION_ID)
-);
-
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION_FK_BY_PAYMENT_ID FOREIGN KEY (BC_PAYMENT_ID) REFERENCES BC_PAYMENT (BC_ID);
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_INVOICE_ID INTEGER,
- BC_SUBSCRIPTION_ID INTEGER,
- CONSTRAINT PK_BC_INVOICE_ITEM PRIMARY KEY (BC_ID)
-);
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM (
- BC_INVOICE_SUBSCRIPTION_ID INTEGER,
- BC_ITEM_ID INTEGER,
- BC_COST VARCHAR (64),
- BC_DESCRIPTION VARCHAR (64),
- CONSTRAINT PK_BC_INVOICE_SUBSCRIPTION_ITEM PRIMARY KEY (BC_INVOICE_SUBSCRIPTION_ID, BC_ITEM_ID)
-);
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_INVOICE_SUBSCRIPTION_ID FOREIGN KEY (BC_INVOICE_SUBSCRIPTION_ID) REFERENCES BC_INVOICE_SUBSCRIPTION (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM(BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_DISCOUNT (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_TENANT_ID INTEGER,
- BC_PERCENTAGE FLOAT,
- BC_AMOUNT FLOAT,
- BC_START_DATE TIMESTAMP,
- BC_END_DATE TIMESTAMP,
- BC_PERCENTAGE_TYPE INTEGER,
- CONSTRAINT PK_BC_DISCOUNT PRIMARY KEY (BC_ID)
-);
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/billing-mysql.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/billing-mysql.sql b/products/stratos_controller/billing-script/billing-mysql.sql
deleted file mode 100755
index 55cab9a..0000000
--- a/products/stratos_controller/billing-script/billing-mysql.sql
+++ /dev/null
@@ -1,120 +0,0 @@
-CREATE TABLE IF NOT EXISTS BC_CUSTOMER (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_NAME VARCHAR (64),
- BC_STARTED_DATE TIMESTAMP,
- BC_EMAIL VARCHAR (64),
- BC_ADDRESS VARCHAR (256),
- CONSTRAINT PK_BC_CUSTOMER PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-CREATE INDEX BC_CUSTOMER_IND_BY_BC_NAME USING HASH ON BC_CUSTOMER(BC_NAME);
-CREATE INDEX BC_CUSTOMER_IND_BY_BC_EMAIL USING HASH ON BC_CUSTOMER(BC_EMAIL);
-
-CREATE TABLE IF NOT EXISTS BC_ITEM (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_NAME VARCHAR (64),
- BC_COST VARCHAR (64),
- BC_DESCRIPTION VARCHAR(128),
- BC_PARENT_ITEM_ID INTEGER,
- CONSTRAINT PK_BC_ITEM PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Demo",NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("SMB",NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Professional",NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Enterprise",NULL,NULL,NULL);
-
-ALTER TABLE BC_ITEM ADD CONSTRAINT BC_ITEM_FK_BY_PARENT_ITEM_ID FOREIGN KEY (BC_PARENT_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_SUBSCRIPTION (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_FILTER VARCHAR (32),
- BC_IS_ACTIVE INTEGER,
- BC_ACTIVE_SINCE TIMESTAMP,
- BC_ACTIVE_UNTIL TIMESTAMP,
- BC_ITEM_ID INTEGER,
- BC_TENANT_ID INTEGER,
- CONSTRAINT PK_BC_SUBSCRIPTION PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_SUBSCRIPTION ADD CONSTRAINT BC_SUBSCRIPTION_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_TENANT_ID INTEGER,
- BC_DATE TIMESTAMP,
- BC_START_DATE TIMESTAMP,
- BC_END_DATE TIMESTAMP,
- BC_BOUGHT_FORWARD VARCHAR (64),
- BC_CARRIED_FORWARD VARCHAR (64),
- BC_TOTAL_PAYMENTS VARCHAR (64),
- BC_TOTAL_COST VARCHAR (64),
- CONSTRAINT PK_BC_INVOICE PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-
-CREATE TABLE IF NOT EXISTS BC_PAYMENT (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_DATE TIMESTAMP,
- BC_AMOUNT VARCHAR (64),
- BC_DESCRIPTION VARCHAR (128),
- BC_INVOICE_ID INTEGER,
- BC_TENANT_ID INTEGER,
- CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_PAYMENT ADD CONSTRAINT BC_PAYMENT_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_REGISTRATION_PAYMENT (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_DATE TIMESTAMP,
- BC_AMOUNT VARCHAR (64),
- BC_DESCRIPTION VARCHAR (128),
- BC_USAGE_PLAN VARCHAR (64),
- BC_TENANT_ID INTEGER,
- CONSTRAINT PK_BC_REGISTRATION_PAYMENT PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
--- this is n-n relationship
-CREATE TABLE IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION (
- BC_PAYMENT_ID INTEGER,
- BC_SUBSCRIPTION_ID INTEGER,
- CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_PAYMENT_ID, BC_SUBSCRIPTION_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT BC_PAYMENT_SUBSCRIPTION_FK_BY_PAYMENT_ID FOREIGN KEY (BC_PAYMENT_ID) REFERENCES BC_PAYMENT (BC_ID);
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT BC_PAYMENT_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_INVOICE_ID INTEGER,
- BC_SUBSCRIPTION_ID INTEGER,
- CONSTRAINT PK_BC_INVOICE_ITEM PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM (
- BC_INVOICE_SUBSCRIPTION_ID INTEGER,
- BC_ITEM_ID INTEGER,
- BC_COST VARCHAR (64),
- BC_DESCRIPTION varchar (64),
- CONSTRAINT PK_BC_INVOICE_SUBSCRIPTION_ITEM PRIMARY KEY (BC_INVOICE_SUBSCRIPTION_ID, BC_ITEM_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_INVOICE_SUBSCRIPTION_ID FOREIGN KEY (BC_INVOICE_SUBSCRIPTION_ID) REFERENCES BC_INVOICE_SUBSCRIPTION (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM(BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_DISCOUNT (
- BC_ID INTEGER AUTO_INCREMENT,
- BC_TENANT_ID INTEGER,
- BC_PERCENTAGE FLOAT,
- BC_AMOUNT FLOAT,
- BC_START_DATE TIMESTAMP,
- BC_END_DATE TIMESTAMP,
- BC_PERCENTAGE_TYPE INTEGER,
- CONSTRAINT PK_BC_DISCOUNT PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/metering_h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/metering_h2.sql b/products/stratos_controller/billing-script/metering_h2.sql
deleted file mode 100755
index 0491b8e..0000000
--- a/products/stratos_controller/billing-script/metering_h2.sql
+++ /dev/null
@@ -1,114 +0,0 @@
---
--- TABLES
---
-
-CREATE TABLE IF NOT EXISTS USAGE_HOURLY_ANALYTICS (
- ID VARCHAR(200) NOT NULL,
- HOUR_FACT TIMESTAMP,
- SERVER_NAME VARCHAR(100),
- TENANT_ID VARCHAR(50),
- PAYLOAD_TYPE VARCHAR(50),
- PAYLOAD_VALUE BIGINT,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_DAILY_ANALYTICS (
- ID VARCHAR(200) NOT NULL,
- DAY_FACT TIMESTAMP,
- SERVER_NAME VARCHAR(100),
- TENANT_ID VARCHAR(50),
- PAYLOAD_TYPE VARCHAR(50),
- PAYLOAD_VALUE BIGINT,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_MONTHLY_ANALYTICS (
- ID VARCHAR(200) NOT NULL,
- MONTH_FACT TIMESTAMP,
- SERVER_NAME VARCHAR(100),
- TENANT_ID VARCHAR(50),
- PAYLOAD_TYPE VARCHAR(50),
- PAYLOAD_VALUE BIGINT,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_HOURLY_TS (
- ID VARCHAR(200) NOT NULL,
- TIMESTMP TIMESTAMP,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_DAILY_TS (
- ID VARCHAR(200) NOT NULL,
- TIMESTMP TIMESTAMP,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_MONTHLY_TS (
- ID VARCHAR(200) NOT NULL,
- TIMESTMP TIMESTAMP,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_HOURLY_ANALYTICS (
- ID VARCHAR(200) NOT NULL,
- HOUR_FACT TIMESTAMP,
- SERVER_NAME VARCHAR(100),
- TENANT_ID VARCHAR(50),
- REQUEST_COUNT BIGINT,
- RESPONSE_COUNT BIGINT,
- FAULT_COUNT BIGINT,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_DAILY_ANALYTICS (
- ID VARCHAR(200) NOT NULL,
- DAY_FACT TIMESTAMP,
- SERVER_NAME VARCHAR(100),
- TENANT_ID VARCHAR(50),
- REQUEST_COUNT BIGINT,
- RESPONSE_COUNT BIGINT,
- FAULT_COUNT BIGINT,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_MONTHLY_ANALYTICS (
- ID VARCHAR(200) NOT NULL,
- MONTH_FACT TIMESTAMP,
- SERVER_NAME VARCHAR(100),
- TENANT_ID VARCHAR(50),
- REQUEST_COUNT BIGINT,
- RESPONSE_COUNT BIGINT,
- FAULT_COUNT BIGINT,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_HOURLY_TS (
- ID VARCHAR(200) NOT NULL,
- TIMESTMP TIMESTAMP,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_DAILY_TS (
- ID VARCHAR(200) NOT NULL,
- TIMESTMP TIMESTAMP,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_MONTHLY_TS (
- ID VARCHAR(200) NOT NULL,
- TIMESTMP TIMESTAMP,
- PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS REGISTRY_USAGE_HOURLY_ANALYTICS (
- ID VARCHAR(50),
- TENANT_ID VARCHAR(50),
- HISTORY_USAGE BIGINT,
- CURRENT_USAGE BIGINT,
- PRIMARY KEY (ID)
-);
-
-
-COMMIT;
-