summaryrefslogtreecommitdiff
path: root/java/management/tools
diff options
context:
space:
mode:
authorLahiru Gunathilake <lahiru@apache.org>2008-10-08 17:55:40 +0000
committerLahiru Gunathilake <lahiru@apache.org>2008-10-08 17:55:40 +0000
commitdbd3efca7000974a6f22ba8898df77cebaaa88a8 (patch)
tree2bd39921f9fab32dd798fafa75a220c70078c8b0 /java/management/tools
parent2f747f62dd8c71e41675b4ea6de0385604e81d75 (diff)
downloadqpid-python-dbd3efca7000974a6f22ba8898df77cebaaa88a8.tar.gz
change the build according to bind with management console.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/tools')
-rwxr-xr-xjava/management/tools/qpid-cli/bin/qpid-cli13
-rwxr-xr-xjava/management/tools/qpid-cli/bin/qpid-cli.bat8
-rw-r--r--java/management/tools/qpid-cli/build.xml29
3 files changed, 39 insertions, 11 deletions
diff --git a/java/management/tools/qpid-cli/bin/qpid-cli b/java/management/tools/qpid-cli/bin/qpid-cli
index ca1d55c696..304a2c31f8 100755
--- a/java/management/tools/qpid-cli/bin/qpid-cli
+++ b/java/management/tools/qpid-cli/bin/qpid-cli
@@ -4,8 +4,8 @@
# 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
+# tonn you under the Apache License, Version 2.0 (the
+# "Licnense"); 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
@@ -18,7 +18,7 @@
# under the License.
#
# set classpath to using jar files
-for f in $QPID_CLI/lib/*.jar
+for f in $QPID_HOME/lib/*.jar
do
CLASSPATH=$CLASSPATH:$f
done
@@ -26,9 +26,12 @@ export CLASSPATH
-export CLASSPATH=$CLASSPATH:$QPID_CLI/build/main/classes/
-echo $CLASSPATH
+export CLASSPATH=$CLASSPATH:$QPID_HOME/management/tools/qpid-cli/main/classes/
+
java -classpath $CLASSPATH org.apache.qpid.CommandLineInterpreter $@
+
+
+
diff --git a/java/management/tools/qpid-cli/bin/qpid-cli.bat b/java/management/tools/qpid-cli/bin/qpid-cli.bat
index fe83b01184..e282114d75 100755
--- a/java/management/tools/qpid-cli/bin/qpid-cli.bat
+++ b/java/management/tools/qpid-cli/bin/qpid-cli.bat
@@ -16,10 +16,10 @@
@REM specific language governing permissions and limitations
@REM under the License.
@REM
-set CLASSPATH=%CLASSPATH%;%QPID_CLI%/lib/jline-0.9.94.jar
-set CLASSPATH=%CLASSPATH%;%QPID_CLI%/lib/junit-4.4.jar
-set CLASSPATH=%CLASSPATH%;%QPID_CLI%/lib/qpid-cli-1.0.jar
-set CLASSPATH=%CLASSPATH%;%QPID_CLI%/build/main/classes/
+set CLASSPATH=%CLASSPATH%;%QPID_HOME%/lib/jline-0.9.94.jar
+set CLASSPATH=%CLASSPATH%;%QPID_HOME%/lib/junit-4.4.jar
+set CLASSPATH=%CLASSPATH%;%QPID_HOME%/lib/qpid-cli-1.0.jar
+set CLASSPATH=%CLASSPATH%;%QPID_HOME%/management/tools/qpid-cli/main/classes/
java -classpath %CLASSPATH% org.apache.qpid.CommandLineInterpreter %1
diff --git a/java/management/tools/qpid-cli/build.xml b/java/management/tools/qpid-cli/build.xml
index e1dc06b4be..41f0b5101e 100644
--- a/java/management/tools/qpid-cli/build.xml
+++ b/java/management/tools/qpid-cli/build.xml
@@ -1,7 +1,28 @@
-<?xml version="1.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.
+ -
+ -->
<project name="lahirugsoc2008">
+ <import file="../../../module.xml"/>
+ <property name="module.depends" value="common"/>
<property name="src.dir" value="src"/>
- <property name="build.dir" value="build"/>
+ <property name="build.dir" value="${module.build}"/>
<property name="build.src.dir" value="${build.dir}/main/"/>
<property name="build.test.dir" value="${build.dir}/test/"/>
<property name="build.src.classes.dir" value="${build.src.dir}/classes"/>
@@ -22,6 +43,10 @@
<mkdir dir="${build.src.classes.dir}" />
<mkdir dir="${build.test.classes.dir}"/>
<mkdir dir="${jar.dir}"/>
+ <copy file="lib/${dependency1}" todir="${project.root}/lib"/>
+ <copy file="lib/${dependency2}" todir="${project.root}/lib"/>
+ <copy file="bin/qpid-cli" todir="${project.root}/bin"/>
+ <copy file="bin/qpid-cli.bat" todir="${project.root}/bin"/>
</target>
<target name="clean">
<delete dir="${build.src.dir}"/>