-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLOSED - task 7: Support Linux in the scripts
http://github.com/d3scomp/JDEECo/issues/issue/7 Plus some polishing of the Ant build.xml file.
- Loading branch information
Showing
17 changed files
with
337 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
grant { | ||
permission java.security.AllPermission; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
grant { | ||
permission java.security.AllPermission; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
grant { | ||
permission java.security.AllPermission; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
grant { | ||
permission java.security.AllPermission; | ||
}; |
Oops, something went wrong.
37b1c3c
There was a problem hiding this comment.
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.