[jira] [Commented] (ACE-483) Daemon Script + Managed Shutdown of Targets

2014-10-10 Thread Niclas Hedhman (JIRA)

[ 
https://issues.apache.org/jira/browse/ACE-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14166659#comment-14166659
 ] 

Niclas Hedhman commented on ACE-483:


run-target/scripts is missing

> Daemon Script + Managed Shutdown of Targets
> ---
>
> Key: ACE-483
> URL: https://issues.apache.org/jira/browse/ACE-483
> Project: ACE
>  Issue Type: Improvement
>  Components: Launcher
>Reporter: Niclas Hedhman
>Assignee: Marcel Offermans
> Attachments: ace-1.patch
>
>
> I am submitting a patch for 
>   a. The Tomcat start/stop script for daemon execution of the ACE Management 
> Agent.
>   b. Rename of the run-target/ project to run-develop/ and let the target.jar 
> be moved to develop/debug-target.jar in the distribution.
>   c. run-target/ now contains the script in a) and an ace.policy file which 
> defaults to AllPermission, for people to use via the -security argument. It 
> ends up with a target/bin and target/conf directory in the dist zip.
>   d. Changes to some code that doesn't comply with stricter Java Generics 
> compiler in Java8/Java9.  One can't have Properties sent to a method that 
> takes Dictionary. Not exhaustive change across all modules.
>   e. Refactored some code to get rid of some Warnings from the build output. 
> Such as the OptionBuilder.
>   f. Bouncing of baselines that BndTools is shouting about.
> I am not particularly familiar with BndTools, and uncertain how the 
> run-target should be set up. Perhaps it shouldn't exist at all, and that the 
> script+conf should sit in the launcher sub-project instead. Assistance is 
> greatly appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


svn commit: r1630772 - in /ace/trunk/run-target: conf/ conf/ace.policy scripts/ scripts/ace-agent.sh

2014-10-10 Thread marrs
Author: marrs
Date: Fri Oct 10 12:22:14 2014
New Revision: 1630772

URL: http://svn.apache.org/r1630772
Log:
ACE-483 Added the conf/ and scripts/ folders.

Added:
ace/trunk/run-target/conf/
ace/trunk/run-target/conf/ace.policy
ace/trunk/run-target/scripts/
ace/trunk/run-target/scripts/ace-agent.sh

Added: ace/trunk/run-target/conf/ace.policy
URL: 
http://svn.apache.org/viewvc/ace/trunk/run-target/conf/ace.policy?rev=1630772&view=auto
==
--- ace/trunk/run-target/conf/ace.policy (added)
+++ ace/trunk/run-target/conf/ace.policy Fri Oct 10 12:22:14 2014
@@ -0,0 +1,7 @@
+
+// ACE doesn't define a security policy, but supports the creation of one.
+// Add -security when starting the ACE Management Agent to enable this policy 
file.
+
+grant {
+java.security.AllPermission;
+}

Added: ace/trunk/run-target/scripts/ace-agent.sh
URL: 
http://svn.apache.org/viewvc/ace/trunk/run-target/scripts/ace-agent.sh?rev=1630772&view=auto
==
--- ace/trunk/run-target/scripts/ace-agent.sh (added)
+++ ace/trunk/run-target/scripts/ace-agent.sh Fri Oct 10 12:22:14 2014
@@ -0,0 +1,523 @@
+#!/bin/sh
+# 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.
+
+# -
+# This script was adapted from the Apache Tomcat Project.
+# -
+#
+# Control Script for the ACE Management Agent
+#
+# Environment Variable Prerequisites
+#
+#   ACE_HOME   May point at your ACE Management Agent "build" directory.
+#
+#   ACE_BASE   (Optional) Base directory for resolving dynamic portions
+#   of an ACE Management Agent installation.  If not present, 
resolves to
+#   the same directory that ACE_HOME points to.
+#
+#   ACE_OUT(Optional) Full path to a file where stdout and stderr
+#   will be redirected.
+#   Default is $ACE_BASE/logs/ace.out
+#
+#   ACE_OPTS   (Optional) Java runtime options used when the "start",
+#   "run" or "debug" command is executed.
+#   Include here and not in JAVA_OPTS all options, that should
+#   only be used by the ACE Management Agent itself, not by 
the stop process,
+#   the version command etc.
+#   Examples are heap size, GC logging, JMX ports etc.
+#
+#   ACE_TMPDIR (Optional) Directory path location of temporary directory
+#   the JVM should use (java.io.tmpdir).  Defaults to
+#   $ACE_BASE/temp.
+#
+#   JAVA_HOME   Must point at your Java Development Kit installation.
+#   Required to run the with the "debug" argument.
+#
+#   JRE_HOMEMust point at your Java Runtime installation.
+#   Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
+#   are both set, JRE_HOME is used.
+#
+#   JAVA_OPTS   (Optional) Java runtime options used when any command
+#   is executed.
+#   Include here and not in ACE_OPTS all options, that
+#   should be used by the ACE Management Agent and also by the 
stop process,
+#   the version command etc.
+#   Most options should go into ACE_OPTS.
+#
+#   JAVA_ENDORSED_DIRS (Optional) Lists of of colon separated directories
+#   containing some jars in order to allow replacement of APIs
+#   created outside of the JCP (i.e. DOM and SAX from W3C).
+#   It can also be used to update the XML parser 
implementation.
+#   Defaults to $ACE_HOME/endorsed.
+#
+#   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
+#   command is executed. The default is "dt_socket".
+#
+#   JPDA_ADDRESS(Optional) Java runtime options used when the "jpda start"
+#   command is executed. The default is localhost:8000.
+#
+#   JPDA_SUSPEND(Optional) Java runtime options used when the "jpda start"
+#   command is

[jira] [Reopened] (ACE-483) Daemon Script + Managed Shutdown of Targets

2014-10-10 Thread Marcel Offermans (JIRA)

 [ 
https://issues.apache.org/jira/browse/ACE-483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Offermans reopened ACE-483:
--

Forgot to add two folders.

> Daemon Script + Managed Shutdown of Targets
> ---
>
> Key: ACE-483
> URL: https://issues.apache.org/jira/browse/ACE-483
> Project: ACE
>  Issue Type: Improvement
>  Components: Launcher
>Reporter: Niclas Hedhman
>Assignee: Marcel Offermans
> Attachments: ace-1.patch
>
>
> I am submitting a patch for 
>   a. The Tomcat start/stop script for daemon execution of the ACE Management 
> Agent.
>   b. Rename of the run-target/ project to run-develop/ and let the target.jar 
> be moved to develop/debug-target.jar in the distribution.
>   c. run-target/ now contains the script in a) and an ace.policy file which 
> defaults to AllPermission, for people to use via the -security argument. It 
> ends up with a target/bin and target/conf directory in the dist zip.
>   d. Changes to some code that doesn't comply with stricter Java Generics 
> compiler in Java8/Java9.  One can't have Properties sent to a method that 
> takes Dictionary. Not exhaustive change across all modules.
>   e. Refactored some code to get rid of some Warnings from the build output. 
> Such as the OptionBuilder.
>   f. Bouncing of baselines that BndTools is shouting about.
> I am not particularly familiar with BndTools, and uncertain how the 
> run-target should be set up. Perhaps it shouldn't exist at all, and that the 
> script+conf should sit in the launcher sub-project instead. Assistance is 
> greatly appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (ACE-483) Daemon Script + Managed Shutdown of Targets

2014-10-10 Thread Marcel Offermans (JIRA)

 [ 
https://issues.apache.org/jira/browse/ACE-483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Offermans resolved ACE-483.
--
Resolution: Fixed

Committed the missing scripts and conf folders.

> Daemon Script + Managed Shutdown of Targets
> ---
>
> Key: ACE-483
> URL: https://issues.apache.org/jira/browse/ACE-483
> Project: ACE
>  Issue Type: Improvement
>  Components: Launcher
>Reporter: Niclas Hedhman
>Assignee: Marcel Offermans
> Attachments: ace-1.patch
>
>
> I am submitting a patch for 
>   a. The Tomcat start/stop script for daemon execution of the ACE Management 
> Agent.
>   b. Rename of the run-target/ project to run-develop/ and let the target.jar 
> be moved to develop/debug-target.jar in the distribution.
>   c. run-target/ now contains the script in a) and an ace.policy file which 
> defaults to AllPermission, for people to use via the -security argument. It 
> ends up with a target/bin and target/conf directory in the dist zip.
>   d. Changes to some code that doesn't comply with stricter Java Generics 
> compiler in Java8/Java9.  One can't have Properties sent to a method that 
> takes Dictionary. Not exhaustive change across all modules.
>   e. Refactored some code to get rid of some Warnings from the build output. 
> Such as the OptionBuilder.
>   f. Bouncing of baselines that BndTools is shouting about.
> I am not particularly familiar with BndTools, and uncertain how the 
> run-target should be set up. Perhaps it shouldn't exist at all, and that the 
> script+conf should sit in the launcher sub-project instead. Assistance is 
> greatly appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)