Bug 55411

Summary: NativeCommand could be useful elsewhere
Product: JMeter Reporter: Sebb <sebb>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 2.9   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Sebb 2013-08-13 09:22:13 UTC
The NativeCommand functionality could be useful elsewhere in JMeter.

The processing could be extracted and moved under the jorphan package (with suitable renaming).

To maintain compatibility, a public wrapper could be retained in the original location.
Comment 1 Sebb 2013-08-13 09:38:48 UTC
URL: http://svn.apache.org/r1513407
Log:
NativeCommand could be useful elsewhere
Moved code to o.a.jorphan.exec
Bugzilla Id: 55411

Added:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/NativeCommand.java   (with props)
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/StreamCopier.java
      - copied, changed from r1507501, jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamCopier.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/StreamGobbler.java
      - copied, changed from r1507501, jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java
Removed:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamCopier.java
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java
Modified:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Sebb 2013-08-13 09:46:39 UTC
URL: http://svn.apache.org/r1513410
Log:
NativeCommand could be useful elsewhere
Deprecate original class
Rename new class to avoid confusion
Bugzilla Id: 55411

Added:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java
      - copied, changed from r1513407, jmeter/trunk/src/jorphan/org/apache/jorphan/exec/NativeCommand.java
Removed:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/NativeCommand.java
Modified:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java