Skip to content

Commit

Permalink
CLOSED - task 7: Support Linux in the scripts
Browse files Browse the repository at this point in the history
http://github.com/d3scomp/JDEECo/issues/issue/7

Plus some polishing of the Ant build.xml file.
  • Loading branch information
bures committed May 23, 2012
1 parent bbbf943 commit 37b1c3c
Show file tree
Hide file tree
Showing 17 changed files with 337 additions and 118 deletions.
6 changes: 3 additions & 3 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="demo"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="src" output="bin/jdeeco" path="src"/>
<classpathentry kind="src" output="bin/demo" path="demo"/>
<classpathentry kind="src" output="bin/test" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="lib" path="lib/jsk-lib.jar"/>
<classpathentry kind="lib" path="lib/jsk-platform.jar"/>
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Compilation is performed by simply executing `ant` command in the JDEECo folder.
All generated binaries together with zipped sources are placed in the `dist` folder.
Additionally AppacheRiver 2.2 is downloaded, set up and all necessary scripts are generated.

To run the demo application simply execute `ant demo`, which should automatically start all necessary services and the main application.
To run the demo application perform the following two step:

* Start the Apache River by executing `ant start-ar`
* Start the demo by executing `ant demo`

At the moment support for the Windows machine is provided only, however shell scripts will be given shortly.

18 changes: 18 additions & 0 deletions apache-river-config/jrmp-mahalo-group.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import net.jini.core.entry.Entry;
import net.jini.lookup.entry.Name;
import net.jini.lookup.entry.Comment;

com.sun.jini.mahalo{

name = "Transaction Service (Mahalo)";

initialLookupAttributes=new Entry[]{ new Name(name)};

initialLookupGroups=new String []{
"nonsecure.hello.example.jini.sun.com"
};

serverExporter= new net.jini.jrmp.JrmpExporter();

}

18 changes: 18 additions & 0 deletions apache-river-config/jrmp-outrigger-group.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import net.jini.core.entry.Entry;
import net.jini.lookup.entry.Name;
import net.jini.lookup.entry.Comment;

com.sun.jini.outrigger{

name = "Java Space (Outrigger)";

initialLookupAttributes=new Entry[]{ new Name(name)};

initialLookupGroups=new String []{
"nonsecure.hello.example.jini.sun.com"
};

serverExporter= new net.jini.jrmp.JrmpExporter();

}

28 changes: 28 additions & 0 deletions apache-river-config/jrmp-reggie.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* 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.
*/

/* Configure source file for JRMP reggie */

import net.jini.jrmp.JrmpExporter;

com.sun.jini.reggie {

serverExporter = new JrmpExporter();
initialMemberGroups = new String[] { "nonsecure.hello.example.jini.sun.com" };

}//end com.sun.jini.reggie
3 changes: 3 additions & 0 deletions apache-river-config/mahalo.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grant {
permission java.security.AllPermission;
};
3 changes: 3 additions & 0 deletions apache-river-config/outrigger.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grant {
permission java.security.AllPermission;
};
3 changes: 3 additions & 0 deletions apache-river-config/reggie.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grant {
permission java.security.AllPermission;
};
45 changes: 45 additions & 0 deletions apache-river-config/start-mahalo-group.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* 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.
*/

/* Configuration file for starting non-secure Mahalo */

import com.sun.jini.config.ConfigUtil;
import com.sun.jini.start.NonActivatableServiceDescriptor;
import com.sun.jini.start.ServiceDescriptor;

com.sun.jini.start {

private static codebase =
ConfigUtil.concat(
new Object[] {
"http://", ConfigUtil.getHostName(), ":8080/mahalo-dl.jar",
" ",
"http://", ConfigUtil.getHostName(), ":8080/jsk-dl.jar" } );

private static policy = "apache-river-config${/}mahalo.policy";
private static classpath = "apache-river${/}lib${/}mahalo.jar";
private static config = "apache-river-config${/}jrmp-mahalo-group.config";

static serviceDescriptors = new ServiceDescriptor[] {
new NonActivatableServiceDescriptor(
codebase, policy, classpath,
"com.sun.jini.mahalo.TransientMahaloImpl",
new String[] { config })
};

}//end com.sun.jini.start
45 changes: 45 additions & 0 deletions apache-river-config/start-outrigger-group.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* 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.
*/

/* Configuration file for starting non-secure Outrigger */

import com.sun.jini.config.ConfigUtil;
import com.sun.jini.start.NonActivatableServiceDescriptor;
import com.sun.jini.start.ServiceDescriptor;

com.sun.jini.start {

private static codebase =
ConfigUtil.concat(
new Object[] {
"http://", ConfigUtil.getHostName(), ":8080/outrigger-dl.jar",
" ",
"http://", ConfigUtil.getHostName(), ":8080/jsk-dl.jar" } );

private static policy = "apache-river-config${/}outrigger.policy";
private static classpath = "apache-river${/}lib${/}outrigger.jar";
private static config = "apache-river-config${/}jrmp-outrigger-group.config";

static serviceDescriptors = new ServiceDescriptor[] {
new NonActivatableServiceDescriptor(
codebase, policy, classpath,
"com.sun.jini.outrigger.TransientOutriggerImpl",
new String[] { config })
};

}//end com.sun.jini.start
26 changes: 26 additions & 0 deletions apache-river-config/start-reggie.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* Configuration file for starting non-secure Reggie */

import com.sun.jini.config.ConfigUtil;
import com.sun.jini.start.NonActivatableServiceDescriptor;
import com.sun.jini.start.ServiceDescriptor;

com.sun.jini.start {

private static codebase =
ConfigUtil.concat(
new Object[] {
"http://", ConfigUtil.getHostName(), ":8080/reggie-dl.jar",
" ",
"http://", ConfigUtil.getHostName(), ":8080/jsk-dl.jar" } );
private static policy = "apache-river-config${/}reggie.policy";
private static classpath = "apache-river${/}lib${/}reggie.jar";
private static config = "apache-river-config${/}jrmp-reggie.config";

static serviceDescriptors = new ServiceDescriptor[] {
new NonActivatableServiceDescriptor(
codebase, policy, classpath,
"com.sun.jini.reggie.TransientRegistrarImpl",
new String[] { config })
};

}//end com.sun.jini.start
3 changes: 3 additions & 0 deletions apache-river-config/start.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grant {
permission java.security.AllPermission;
};
Loading

1 comment on commit 37b1c3c

@bures
Copy link
Member Author

@bures bures commented on 37b1c3c May 23, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing - I change the output folders of the Ant build.xml file to be "bin". Further, I set Eclipse to generate code to separate folders bin/jdeeco, bin/demo, bin/test.

Please sign in to comment.