Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #990 from prabushi/master
Browse files Browse the repository at this point in the history
Read MI release candidate directory from the script
  • Loading branch information
prabushi authored May 25, 2020
2 parents 9479bde + f7b1dc0 commit 64b4677
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
<version.sortpom.plugin>2.3.0</version.sortpom.plugin>
<webeditor.version>4.0.0-SNAPSHOT</webeditor.version>
<wso2.tomcat.version>7.0.59.wso2v3</wso2.tomcat.version>
<mi.product.version>1.1.0-beta3</mi.product.version>
<mi.product.version>1.1.0-rc1</mi.product.version>
<mi.product.directory>1.1.0</mi.product.directory>
<apache.maven.version>3.6.3</apache.maven.version>
<apim.ctl.version>3.1.1</apim.ctl.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion rcp-product/org.wso2.developerstudio.rcp.product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
<goal>exec</goal>
</goals>
<configuration>
<commandlineArgs>${mi.product.version} ${apache.maven.version} ${apim.ctl.version}</commandlineArgs>
<commandlineArgs>${mi.product.version} ${apache.maven.version} ${apim.ctl.version} ${mi.product.directory}</commandlineArgs>
<executable>${project.basedir}/scripts/installer-script-oxygen.sh</executable>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BASE_DIR=$(pwd)
PRODUCT_VERSION=$1
APACHE_MAVEN_VERSION=$2
APIM_CTL_VERSION=$3
PRODUCT_DIRECTORY=$4

echo BASE_DIR $BASE_DIR and PRODUCT_VERSION $PRODUCT_VERSION

Expand Down Expand Up @@ -71,11 +72,11 @@ unzip $PRODUCT_PATH_ROOT/wso2mi-${PRODUCT_VERSION}.zip -d $PRODUCT_PATH_WIN_86/r
unzip $PRODUCT_PATH_ROOT/wso2mi-${PRODUCT_VERSION}.zip -d $PRODUCT_PATH_WIN_64/runtime

# Rename as "microesb" (this is the static name used in EI Tooling code)
mv $PRODUCT_PATH_LINUX_86/runtime/wso2mi-$PRODUCT_VERSION $PRODUCT_PATH_LINUX_86/runtime/microesb
mv $PRODUCT_PATH_LINUX_64/runtime/wso2mi-$PRODUCT_VERSION $PRODUCT_PATH_LINUX_64/runtime/microesb
mv $PRODUCT_PATH_MACOS/DeveloperStudio.app/Contents/Eclipse/runtime/wso2mi-$PRODUCT_VERSION $PRODUCT_PATH_MACOS/DeveloperStudio.app/Contents/Eclipse/runtime/microesb
mv $PRODUCT_PATH_WIN_86/runtime/wso2mi-$PRODUCT_VERSION $PRODUCT_PATH_WIN_86/runtime/microesb
mv $PRODUCT_PATH_WIN_64/runtime/wso2mi-$PRODUCT_VERSION $PRODUCT_PATH_WIN_64/runtime/microesb
mv $PRODUCT_PATH_LINUX_86/runtime/wso2mi-$PRODUCT_DIRECTORY $PRODUCT_PATH_LINUX_86/runtime/microesb
mv $PRODUCT_PATH_LINUX_64/runtime/wso2mi-$PRODUCT_DIRECTORY $PRODUCT_PATH_LINUX_64/runtime/microesb
mv $PRODUCT_PATH_MACOS/DeveloperStudio.app/Contents/Eclipse/runtime/wso2mi-$PRODUCT_DIRECTORY $PRODUCT_PATH_MACOS/DeveloperStudio.app/Contents/Eclipse/runtime/microesb
mv $PRODUCT_PATH_WIN_86/runtime/wso2mi-$PRODUCT_DIRECTORY $PRODUCT_PATH_WIN_86/runtime/microesb
mv $PRODUCT_PATH_WIN_64/runtime/wso2mi-$PRODUCT_DIRECTORY $PRODUCT_PATH_WIN_64/runtime/microesb

# Unzip apche maven to relevant packages
unzip $PRODUCT_PATH_ROOT/apache-maven-${APACHE_MAVEN_VERSION}-bin.zip -d $PRODUCT_PATH_LINUX_86/
Expand Down

0 comments on commit 64b4677

Please sign in to comment.