karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [05/10] karaf git commit: KARAF-3982: finish up IT.
Date Tue, 24 Nov 2015 19:50:48 GMT
KARAF-3982: finish up IT.


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/42ea0049
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/42ea0049
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/42ea0049

Branch: refs/heads/master
Commit: 42ea00495f695660380670277beeb5f7581f3225
Parents: d1f00dc
Author: Benson Margulies <benson@basistech.com>
Authored: Wed Sep 9 11:06:54 2015 -0400
Committer: Benson Margulies <benson@basistech.com>
Committed: Wed Sep 9 11:06:54 2015 -0400

----------------------------------------------------------------------
 .../src/it/test-assembly-prop-edits/verify.bsh  | 29 ++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/42ea0049/tooling/karaf-maven-plugin/src/it/test-assembly-prop-edits/verify.bsh
----------------------------------------------------------------------
diff --git a/tooling/karaf-maven-plugin/src/it/test-assembly-prop-edits/verify.bsh b/tooling/karaf-maven-plugin/src/it/test-assembly-prop-edits/verify.bsh
new file mode 100644
index 0000000..e256f34
--- /dev/null
+++ b/tooling/karaf-maven-plugin/src/it/test-assembly-prop-edits/verify.bsh
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+import java.io.*;
+import java.lang.*;
+import java.util.*;
+
+Properties props = new Properties();
+InputStream propStream = new FileInputStream(new File(basedir, "target/assembly/etc/config.properties"));
+props.load(propStream);
+return "equinox".equals(props.getProperty("karaf.framework"));
+
+


Mime
View raw message