From: <js...@rh...> - 2009-07-28 13:13:05
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><style type="text/css"><!-- #msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : #fff; } #msg DT { float : left; width : 6em; font-weight : bold; } #msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; font-size : 10pt; } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, .diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin : 0; } #patch .propset h4, #patch .binary h4 {margin: 0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {background:#eeeeee;padding: 0 0 10px 0;} #patch .propset .diff, #patch .binary .diff {padding: 10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add {background:#ddffdd;} #patch .rem {background:#ffdddd;} #patch .lines, .info {color:#888888;background:#ffffff;} .diff { width : 100%; } #msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : #fff; } #msg DT { float : left; width : 6em; font-weight : bold; } #msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; font-size : 10pt; } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, .diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin : 0; } #patch .propset h4, #patch .binary h4 {margin: 0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {background:#eeeeee;padding: 0 0 10px 0;} #patch .propset .diff, #patch .binary .diff {padding: 10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add {background:#ddffdd;} #patch .rem {background:#ffdddd;} #patch .lines, .info {color:#888888;background:#ffffff;} .diff { width : 100%; } --></style> <title>[rhq-project.org rhq] [4609] Initial commit for scripts module.</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>4609</dd> <dt>Author</dt> <dd>jsanda</dd> <dt>Date</dt> <dd>2009-07-28 08:12:49 -0500 (Tue, 28 Jul 2009)</dd> </dl> <h3>Log Message</h3> <pre>Initial commit for scripts module. The idea for this module is to be an integration test module for scripts. And if we decide to bundle a set a sample scripts for the CLI, they could from the scripts module. For each JavaScript file (having a .js extension) under src/test/script, a separate TestNG test will be executed.</pre> <h3>Modified Paths</h3> <ul> <li><a href="#rhqtrunkmodulesenterpriseremotingclipomxml">rhq/trunk/modules/enterprise/remoting/cli/pom.xml</a></li> <li><a href="#rhqtrunkmodulesenterpriseremotingclisrcmainjavaorgrhqenterpriseclientcommandsScriptCommandjava">rhq/trunk/modules/enterprise/remoting/cli/src/main/java/org/rhq/enterprise/client/commands/ScriptCommand.java</a></li> <li><a href="#rhqtrunkmodulesenterpriseremotingpomxml">rhq/trunk/modules/enterprise/remoting/pom.xml</a></li> </ul> <h3>Added Paths</h3> <ul> <li>rhq/trunk/modules/enterprise/remoting/scripts/</li> <li><a href="#rhqtrunkmodulesenterpriseremotingscriptspomxml">rhq/trunk/modules/enterprise/remoting/scripts/pom.xml</a></li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/</li> <li><a href="#rhqtrunkmodulesenterpriseremotingscriptssrcmainjavaorgrhqenterpriseremotingcliScriptTestjava">rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTest.java</a></li> <li><a href="#rhqtrunkmodulesenterpriseremotingscriptssrcmainjavaorgrhqenterpriseremotingcliScriptTestRunnerjava">rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTestRunner.java</a></li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/main/script/</li> <li><a href="#rhqtrunkmodulesenterpriseremotingscriptssrcmainscriptechojs">rhq/trunk/modules/enterprise/remoting/scripts/src/main/script/echo.js</a></li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/</li> <li><a href="#rhqtrunkmodulesenterpriseremotingscriptssrctestscriptecho_testjs">rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/echo_test.js</a></li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/</li> <li>rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/cli/</li> <li><a href="#rhqtrunkmodulesenterpriseremotingscriptssrctestscriptorgrhqenterpriseremotingclisubjectjs">rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/cli/subject.js</a></li> </ul> <h3>Removed Paths</h3> <ul> <li><a href="#rhqtrunkmoduleshelperspluginGenrhqpluginGeniml">rhq/trunk/modules/helpers/pluginGen/rhq-pluginGen.iml</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="rhqtrunkmodulesenterpriseremotingclipomxml"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/remoting/cli/pom.xml (4608 => 4609)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/remoting/cli/pom.xml 2009-07-28 12:05:24 UTC (rev 4608) +++ rhq/trunk/modules/enterprise/remoting/cli/pom.xml 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -125,7 +125,6 @@ </span><span class="cx"> <groupId>jline</groupId> <artifactId>jline</artifactId> <version>${jline.version}</version> </span><span class="rem">- <scope>provided</scope> </span><span class="cx"> </dependency> <dependency> </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingclisrcmainjavaorgrhqenterpriseclientcommandsScriptCommandjava"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/remoting/cli/src/main/java/org/rhq/enterprise/client/commands/ScriptCommand.java (4608 => 4609)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/remoting/cli/src/main/java/org/rhq/enterprise/client/commands/ScriptCommand.java 2009-07-28 12:05:24 UTC (rev 4608) +++ rhq/trunk/modules/enterprise/remoting/cli/src/main/java/org/rhq/enterprise/client/commands/ScriptCommand.java 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -18,30 +18,14 @@ </span><span class="cx"> */ package org.rhq.enterprise.client.commands; </span><span class="rem">-import java.beans.BeanInfo; -import java.beans.IntrospectionException; -import java.beans.Introspector; -import java.beans.MethodDescriptor; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.io.Reader; -import java.util.List; -import java.util.Arrays; - -import javax.script.ScriptContext; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import javax.script.ScriptException; - </span><span class="cx"> import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; </span><span class="rem">- </span><span class="cx"> import org.rhq.core.domain.util.PageControl; import org.rhq.enterprise.client.ClientMain; import org.rhq.enterprise.client.Controller; </span><span class="add">+import org.rhq.enterprise.client.Exporter; </span><span class="cx"> import org.rhq.enterprise.client.RemoteClient; import org.rhq.enterprise.client.TabularWriter; </span><span class="rem">-import org.rhq.enterprise.client.Exporter; </span><span class="cx"> import org.rhq.enterprise.client.script.CmdLineParser; import org.rhq.enterprise.client.script.NamedScriptArg; import org.rhq.enterprise.client.script.ParseException; </span><span class="lines">@@ -51,6 +35,20 @@ </span><span class="cx"> import org.rhq.enterprise.client.utility.ResourceClientProxy; import org.rhq.enterprise.client.utility.ScriptUtil; </span><span class="add">+import javax.script.ScriptContext; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import javax.script.ScriptException; +import java.beans.BeanInfo; +import java.beans.IntrospectionException; +import java.beans.Introspector; +import java.beans.MethodDescriptor; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.Reader; +import java.util.Arrays; +import java.util.List; + </span><span class="cx"> /** * @author Greg Hinkle */ </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingpomxml"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/remoting/pom.xml (4608 => 4609)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/remoting/pom.xml 2009-07-28 12:05:24 UTC (rev 4608) +++ rhq/trunk/modules/enterprise/remoting/pom.xml 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -20,6 +20,7 @@ </span><span class="cx"> <modules> <module>webservices</module> <module>cli</module> </span><span class="add">+ <module>scripts</module> </span><span class="cx"> </modules> </project> </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingscriptspomxml"></a> <div class="addfile"><h4>Added: rhq/trunk/modules/enterprise/remoting/scripts/pom.xml (0 => 4609)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/remoting/scripts/pom.xml (rev 0) +++ rhq/trunk/modules/enterprise/remoting/scripts/pom.xml 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -0,0 +1,96 @@ </span><span class="add">+<project + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.rhq</groupId> + <artifactId>rhq-parent</artifactId> + <version>1.3.0-SNAPSHOT</version> + </parent> + + <artifactId>rhq-remoting-cli-scripts</artifactId> + + <name>RHQ Enterprise Remote CLI Scripts</name> + <description>RHQ Enterprise Remote Command Line Interface</description> + + <scm> + <connection>scm:svn:http://svn.rhq-project.org/repos/rhq/trunk/modules/enterprise/client/</connection> + <developerConnection>scm:svn:http://svn.rhq-project.org/repos/rhq/trunk/modules/enterprise/client/</developerConnection> + </scm> + + <dependencies> + <dependency> + <groupId>${groupId}</groupId> + <artifactId>rhq-remoting-cli</artifactId> + <version>${version}</version> + </dependency> + + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <version>5.8</version> + <classifier>jdk15</classifier> + </dependency> + + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.4</version> + </dependency> + + <dependency> + <groupId>jboss</groupId> + <artifactId>jboss-j2ee</artifactId> + </dependency> + </dependencies> + + <build> + <resources> + <resource> + <directory>src/main/script</directory> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/script</directory> + </testResource> + </testResources> + + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>test-scripts</id> + <phase>test</phase> + <configuration> + <tasks> + <java classname="org.rhq.enterprise.remoting.cli.ScriptTestRunner" + classpathref="maven.test.classpath" + fork="true"> + <sysproperty key="script.dir" value="${basedir}/src/test/script"/> + <sysproperty key="test.output.dir" value="${basedir}/target/surefire-reports"/> + </java> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> </span><span class="cx">Property changes on: rhq/trunk/modules/enterprise/remoting/scripts/pom.xml ___________________________________________________________________ </span></pre></div> <a id="svnmimetype"></a> <div class="addfile"><h4>Added: svn:mime-type ( => )</h4> <pre class="diff"> <span class="info">Added: svn:keywords + Date Author Id Revision HeadURL </span></pre></div> <a id="svneolstyle"></a> <div class="addfile"><h4>Added: svn:eol-style ( => )</h4> <pre class="diff"> <span class="info"> Added: rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTest.java </span><span class="cx">=================================================================== </span><span class="rem">--- rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTest.java (rev 0) </span><span class="add">+++ rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTest.java 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -0,0 +1,43 @@ </span><span class="add">+/* + * RHQ Management Platform + * Copyright (C) 2005-2008 Red Hat, Inc. + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation, and/or the GNU Lesser + * General Public License, version 2.1, also as published by the Free + * Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License and the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * and the GNU Lesser General Public License along with this program; + * if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.rhq.enterprise.remoting.cli; + +import org.rhq.enterprise.client.ClientMain; +import org.testng.annotations.Test; +import org.testng.annotations.Parameters; + +import java.net.URL; +import java.net.URI; + +public class ScriptTest { + + @Parameters({"script"}) + @Test + public void testScript(String script) throws Exception { + String[] args = new String[] {"exec", "-f", script}; + + ClientMain.main(args); + } + +} </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingscriptssrcmainjavaorgrhqenterpriseremotingcliScriptTestjava"></a> <div class="propset"><h4>Property changes: rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTest.java</h4> <pre class="diff"> </pre></div> <a id="svnmimetype"></a> <div class="addfile"><h4>Added: svn:mime-type ( => )</h4> <pre class="diff"> <span class="info">Added: svn:keywords + Date Author Id Revision HeadURL </span></pre></div> <a id="svneolstyle"></a> <div class="addfile"><h4>Added: svn:eol-style ( => )</h4> <pre class="diff"> <span class="info"> Added: rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTestRunner.java </span><span class="cx">=================================================================== </span><span class="rem">--- rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTestRunner.java (rev 0) </span><span class="add">+++ rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTestRunner.java 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -0,0 +1,93 @@ </span><span class="add">+/* + * RHQ Management Platform + * Copyright (C) 2005-2008 Red Hat, Inc. + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation, and/or the GNU Lesser + * General Public License, version 2.1, also as published by the Free + * Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License and the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * and the GNU Lesser General Public License along with this program; + * if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.rhq.enterprise.remoting.cli; + +import org.testng.xml.XmlSuite; +import org.testng.xml.XmlTest; +import org.testng.xml.XmlClass; +import org.testng.TestNG; +import org.apache.commons.io.FileUtils; +import org.apache.commons.io.FilenameUtils; + +import java.io.File; +import java.util.Collection; +import java.util.ArrayList; +import java.util.List; +import java.util.LinkedList; + +public class ScriptTestRunner { + + private File scriptDir = new File(System.getProperty("script.dir")); + + private String outputDir = System.getProperty("test.output.dir"); + + public void execute() { + Collection<File> scripts = findScripts(); + XmlSuite suite = createSuite(); + + for (File script : scripts) { + addTestToSuite(suite, script); + } + + runSuite(suite); + } + + private Collection<File> findScripts() { + return FileUtils.listFiles(scriptDir, new String[] {"js"}, true); + } + + private XmlSuite createSuite() { + XmlSuite suite = new XmlSuite(); + suite.setName("CLI Script Test Suite"); + return suite; + } + + private void addTestToSuite(XmlSuite suite, File script) { + XmlTest test = new XmlTest(suite); + test.setName(FilenameUtils.getBaseName(script.getAbsolutePath())); + test.addParameter("script", script.getAbsolutePath()); + + List<XmlClass> classes = new ArrayList<XmlClass>(); + classes.add(new XmlClass(ScriptTest.class)); + test.setXmlClasses(classes); + } + + private void runSuite(XmlSuite suite) { + List<XmlSuite> suites = new LinkedList<XmlSuite>(); + suites.add(suite); + + TestNG testNG = new TestNG(); + testNG.setOutputDirectory(outputDir); + testNG.setXmlSuites(suites); + + testNG.run(); + } + + public static void main(String[] args) { + System.out.println("BOOTSTRAP SCRIPT TESTS"); + ScriptTestRunner runner = new ScriptTestRunner(); + runner.execute(); + } + +} </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingscriptssrcmainjavaorgrhqenterpriseremotingcliScriptTestRunnerjava"></a> <div class="propset"><h4>Property changes: rhq/trunk/modules/enterprise/remoting/scripts/src/main/java/org/rhq/enterprise/remoting/cli/ScriptTestRunner.java</h4> <pre class="diff"> </pre></div> <a id="svnmimetype"></a> <div class="addfile"><h4>Added: svn:mime-type ( => )</h4> <pre class="diff"> <span class="info">Added: svn:keywords + Date Author Id Revision HeadURL </span></pre></div> <a id="svneolstyle"></a> <div class="addfile"><h4>Added: svn:eol-style ( => )</h4> <pre class="diff"> <span class="info"> </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingscriptssrcmainscriptechojs"></a> <div class="propset"><h4>Property changes: rhq/trunk/modules/enterprise/remoting/scripts/src/main/script/echo.js</h4> <pre class="diff"> </pre></div> <a id="svnmimetype"></a> <div class="addfile"><h4>Added: svn:mime-type ( => )</h4> <pre class="diff"> <span class="info">Added: svn:keywords + Date Author Id Revision HeadURL </span></pre></div> <a id="svneolstyle"></a> <div class="addfile"><h4>Added: svn:eol-style ( => )</h4> <pre class="diff"> <span class="info"> Added: rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/echo_test.js </span><span class="cx">=================================================================== </span><span class="rem">--- rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/echo_test.js (rev 0) </span><span class="add">+++ rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/echo_test.js 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -0,0 +1 @@ </span><span class="add">+println("TEST"); </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingscriptssrctestscriptecho_testjs"></a> <div class="propset"><h4>Property changes: rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/echo_test.js</h4> <pre class="diff"> </pre></div> <a id="svnmimetype"></a> <div class="addfile"><h4>Added: svn:mime-type ( => )</h4> <pre class="diff"> <span class="info">Added: svn:keywords + Date Author Id Revision HeadURL </span></pre></div> <a id="svneolstyle"></a> <div class="addfile"><h4>Added: svn:eol-style ( => )</h4> <pre class="diff"> <span class="info"> Added: rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/cli/subject.js </span><span class="cx">=================================================================== </span><span class="rem">--- rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/cli/subject.js (rev 0) </span><span class="add">+++ rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/cli/subject.js 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -0,0 +1,8 @@ </span><span class="add">+rhq.login('rhqadmin', 'rhqadmin'); + +pretty.print(subject); + +exporter.setTarget('raw', 'output.txt'); +exporter.write(subject); + +rhq.logout(); </span></pre></div> <a id="rhqtrunkmodulesenterpriseremotingscriptssrctestscriptorgrhqenterpriseremotingclisubjectjs"></a> <div class="propset"><h4>Property changes: rhq/trunk/modules/enterprise/remoting/scripts/src/test/script/org/rhq/enterprise/remoting/cli/subject.js</h4> <pre class="diff"> </pre></div> <a id="svnmimetype"></a> <div class="addfile"><h4>Added: svn:mime-type ( => )</h4> <pre class="diff"> <span class="info">Added: svn:keywords + Date Author Id Revision HeadURL </span></pre></div> <a id="svneolstyle"></a> <div class="addfile"><h4>Added: svn:eol-style ( => )</h4> <pre class="diff"> <span class="info"> Deleted: rhq/trunk/modules/helpers/pluginGen/rhq-pluginGen.iml </span><span class="cx">=================================================================== </span><span class="rem">--- rhq/trunk/modules/helpers/pluginGen/rhq-pluginGen.iml 2009-07-28 12:05:24 UTC (rev 4608) </span><span class="add">+++ rhq/trunk/modules/helpers/pluginGen/rhq-pluginGen.iml 2009-07-28 13:12:49 UTC (rev 4609) </span><span class="lines">@@ -1,29 +0,0 @@ </span><span class="rem">-<?xml version="1.0" encoding="UTF-8"?> -<module relativePaths="true" MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> - <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false"> - <output url="file://$MODULE_DIR$/target/classes" /> - <output-test url="file://$MODULE_DIR$/target/test-classes" /> - <content url="file://$MODULE_DIR$"> - <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> - <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" /> - <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> - <excludeFolder url="file://$MODULE_DIR$/target" /> - </content> - <orderEntry type="inheritedJdk" /> - <orderEntry type="sourceFolder" forTests="false" /> - <orderEntry type="library" exported="" name="Maven: commons-logging:commons-logging:1.1" level="project" /> - <orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" /> - <orderEntry type="library" exported="" name="Maven: logkit:logkit:1.0.1" level="project" /> - <orderEntry type="library" exported="" name="Maven: avalon-framework:avalon-framework:4.1.3" level="project" /> - <orderEntry type="library" exported="" name="Maven: javax.servlet:servlet-api:2.3" level="project" /> - <orderEntry type="library" exported="" name="Maven: i18nlog:i18nlog:1.0.9" level="project" /> - <orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.1" level="project" /> - <orderEntry type="library" name="Maven: javax.xml.stream:stax-api:1.0-2" level="project" /> - <orderEntry type="library" name="Maven: javax.activation:activation:1.1" level="project" /> - <orderEntry type="library" name="Maven: org.testng:testng:jdk15:5.7" level="project" /> - <orderEntry type="library" name="Maven: junit:junit:3.8.1" level="project" /> - <orderEntry type="library" name="Maven: org.jetbrains:annotations:7.0.2" level="project" /> - <orderEntry type="library" exported="" name="Maven: org.freemarker:freemarker:2.3.11" level="project" /> - </component> -</module> - </span> </pre> </div> </div> </body> </html> |