From: <cr...@us...> - 2009-09-09 15:23:32
|
Revision: 5667 http://jnode.svn.sourceforge.net/jnode/?rev=5667&view=rev Author: crawley Date: 2009-09-09 15:23:20 +0000 (Wed, 09 Sep 2009) Log Message: ----------- Merge changes from 'trunk' at r5663 (cli) Added Paths: ----------- branches/jikesRVM/cli/ branches/jikesRVM/cli/.classpath branches/jikesRVM/cli/.project branches/jikesRVM/cli/build-tests.xml branches/jikesRVM/cli/build.xml branches/jikesRVM/cli/cli.iml branches/jikesRVM/cli/coreutils/ branches/jikesRVM/cli/coreutils/descriptors/ branches/jikesRVM/cli/coreutils/src/ branches/jikesRVM/cli/coreutils/src/commands/ branches/jikesRVM/cli/coreutils/src/commands/org/ branches/jikesRVM/cli/coreutils/src/commands/org/jnode/ branches/jikesRVM/cli/coreutils/src/commands/org/jnode/command/ branches/jikesRVM/cli/coreutils/src/commands/org/jnode/command/net/ branches/jikesRVM/cli/descriptors/ branches/jikesRVM/cli/descriptors/org.apache.tools.archive.xml branches/jikesRVM/cli/descriptors/org.jnode.command.archive.xml branches/jikesRVM/cli/descriptors/org.jnode.command.argument.xml branches/jikesRVM/cli/descriptors/org.jnode.command.common.xml branches/jikesRVM/cli/descriptors/org.jnode.command.dev.ant.xml branches/jikesRVM/cli/descriptors/org.jnode.command.dev.xml branches/jikesRVM/cli/descriptors/org.jnode.command.file.xml branches/jikesRVM/cli/descriptors/org.jnode.command.net.xml branches/jikesRVM/cli/descriptors/org.jnode.command.system.xml branches/jikesRVM/cli/descriptors/org.jnode.command.util.xml branches/jikesRVM/cli/src/ branches/jikesRVM/cli/src/commands/ branches/jikesRVM/cli/src/commands/org/ branches/jikesRVM/cli/src/commands/org/jnode/ branches/jikesRVM/cli/src/commands/org/jnode/command/ branches/jikesRVM/cli/src/commands/org/jnode/command/archive/ branches/jikesRVM/cli/src/commands/org/jnode/command/archive/ArchiveCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/BUnzipCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/BZCatCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/BZip.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/BZipCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/GUnzipCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/GZip.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/GZipCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/TarCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/UnzipCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/ZCatCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/Zip.java branches/jikesRVM/cli/src/commands/org/jnode/command/archive/ZipCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/argument/ branches/jikesRVM/cli/src/commands/org/jnode/command/argument/NumberListArgument.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/ branches/jikesRVM/cli/src/commands/org/jnode/command/common/BasenameCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/DateCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/DirnameCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/EchoCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/EnvCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/ExitCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/ExprCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/FalseCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/HelpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/HistoryCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/SleepCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/TimeCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/TrueCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/UnixTestCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/common/UptimeCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/dev/ branches/jikesRVM/cli/src/commands/org/jnode/command/dev/CompileCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/dev/DebugCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/dev/DefaultCompilerCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/dev/DisassembleCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/dev/RemoteOutputCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/dev/ant/ branches/jikesRVM/cli/src/commands/org/jnode/command/dev/ant/AntCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/ branches/jikesRVM/cli/src/commands/org/jnode/command/file/CatCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/CdCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/CpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/CutCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/DFCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/DeleteCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/DirCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/DuCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/FindCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/GrepCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/HeadCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/HexdumpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/Md5SumCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/MkdirCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/PasteCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/PwdCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/SortCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/TailCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/TeeCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/TouchCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/file/WcCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/ branches/jikesRVM/cli/src/commands/org/jnode/command/net/ArpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/BootpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/DhcpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/IfconfigCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/NetstatCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/PingCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/ResolverCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/RouteCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/RpcInfoCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/TcpInoutCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/TftpCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/WLanCtlCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/net/WgetCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/ branches/jikesRVM/cli/src/commands/org/jnode/command/system/AliasCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/BindKeysCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/ClassCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/ClasspathCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/CpuIDCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/GcCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/HaltCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/IsolateCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/JavaCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/KdbCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/KillCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/LoadkeysCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/LocaleCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/Log4jCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/LsIRQCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/MemoryCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/NamespaceCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/OnHeapCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/PageCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/PluginCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/PrintEnvCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/RebootCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/RunCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/SetCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/SyntaxCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/TerminateCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/ThreadCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/system/VmInfoCommand.java branches/jikesRVM/cli/src/commands/org/jnode/command/util/ branches/jikesRVM/cli/src/commands/org/jnode/command/util/AbstractDirectoryWalker.java branches/jikesRVM/cli/src/commands/org/jnode/command/util/IOUtils.java branches/jikesRVM/cli/src/commands/org/jnode/command/util/NumberRange.java branches/jikesRVM/cli/src/test/ branches/jikesRVM/cli/src/test/org/ branches/jikesRVM/cli/src/test/org/jnode/ branches/jikesRVM/cli/src/test/org/jnode/test/ branches/jikesRVM/cli/src/test/org/jnode/test/command/ branches/jikesRVM/cli/src/test/org/jnode/test/command/all-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/argument/ branches/jikesRVM/cli/src/test/org/jnode/test/command/argument/all-argument-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/common/ branches/jikesRVM/cli/src/test/org/jnode/test/command/common/all-common-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/common/basename-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/common/dirname-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/common/posix-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/ branches/jikesRVM/cli/src/test/org/jnode/test/command/file/all-file-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/cat-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/cut-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/grep-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/grep-context-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/head-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/paste-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/sort-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/tail-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/tee-command-tests.xml branches/jikesRVM/cli/src/test/org/jnode/test/command/file/wc-command-tests.xml Added: branches/jikesRVM/cli/.classpath =================================================================== --- branches/jikesRVM/cli/.classpath (rev 0) +++ branches/jikesRVM/cli/.classpath 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/commands"/> + <classpathentry kind="src" path="src/test"/> + <classpathentry combineaccessrules="false" kind="src" path="/shell"/> + <classpathentry combineaccessrules="false" kind="src" path="/core"/> + <classpathentry combineaccessrules="false" kind="src" path="/net"/> + <classpathentry combineaccessrules="false" kind="src" path="/fs"/> + <classpathentry kind="lib" path="/all/lib/classlib.jar" sourcepath="/all/lib/classlib-src.jar"/> + <classpathentry kind="output" path="build/classes"/> +</classpath> Added: branches/jikesRVM/cli/.project =================================================================== --- branches/jikesRVM/cli/.project (rev 0) +++ branches/jikesRVM/cli/.project 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>cli</name> + <comment></comment> + <projects> + <project>core</project> + <project>shell</project> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> Added: branches/jikesRVM/cli/build-tests.xml =================================================================== --- branches/jikesRVM/cli/build-tests.xml (rev 0) +++ branches/jikesRVM/cli/build-tests.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,56 @@ +<project name="JNode-CLI-Tests" default="all" basedir="."> + + <import file="${basedir}/../all/build.xml"/> + + <target name="help" description="output target descriptions"> + <echo> +The main targets (tests) for this build are as follows: +all Runs all tests for the 'cli' project +all-junit Runs all JUnit tests for the 'cli' project +blackbox-common Runs all blackbox tests in the 'common' package of the 'cli' project +blackbox-file Runs all blackbox tests in the 'file' package of the 'cli' project +all-blackbox Runs all blackbox tests for the 'cli' project +help Output these messages + </echo> + </target> + + <target name="all-junit"> + <delete dir="${basedir}/reports/junit"/> + <mkdir dir="${basedir}/reports/junit"/> + <junit showoutput="on" printsummary="on" fork="on"> + <classpath refid="cp-test"/> + <test name="org.jnode.test.cli.CLITestSuite" todir="${basedir}/reports/junit"/> + </junit> + </target> + + <target name="blackbox-common"> + <java classpathref="cp-test" classname="org.jnode.test.shell.harness.TestHarness"> + <arg value="-E"/> + <arg value="-s"/> + <arg value="${root.dir}"/> + <arg value="${basedir}/src/test/org/jnode/test/command/common/all-common-tests.xml"/> + </java> + </target> + + <target name="blackbox-file"> + <java classpathref="cp-test" classname="org.jnode.test.shell.harness.TestHarness"> + <arg value="-E"/> + <arg value="-s"/> + <arg value="${root.dir}"/> + <arg value="${basedir}/src/test/org/jnode/test/command/file/all-file-tests.xml"/> + </java> + </target> + + <target name="all-blackbox"> + <java classpathref="cp-test" classname="org.jnode.test.shell.harness.TestHarness"> + <arg value="-E"/> + <arg value="-s"/> + <arg value="${root.dir}"/> + <arg value="${basedir}/src/test/org/jnode/test/command/all-tests.xml"/> + </java> + </target> + + <target name="all" depends="all-junit,all-blackbox"/> +</project> + + Added: branches/jikesRVM/cli/build.xml =================================================================== --- branches/jikesRVM/cli/build.xml (rev 0) +++ branches/jikesRVM/cli/build.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,45 @@ +<project name="JNode-CoreUtils" default="all" basedir="."> + + <typedef file="${basedir}/../all/lib/jnode.xml"/> + + <property name="my-build.dir" value="${basedir}/build"/> + <property name="my-classes.dir" value="${my-build.dir}/classes"/> + <property name="my-src.dir" value="${basedir}/src"/> + <property name="my.jar" value="${jnode-cli.jar}"/> + <property name="my-report.dir" value="${my-build.dir}/report"/> + +<!-- Subproject specific classpath --> + <path id="my-cp"> + <pathelement location="${jnode-core.jar}"/> + <pathelement location="${jnode-fs.jar}"/> + <pathelement location="${jnode-shell.jar}"/> + <pathelement location="${jnode-net.jar}"/> + <path refid="cp"/> + </path> + +<!-- Initialize subproject directories --> + <target name="prepare"> + <mkdir dir="${my-classes.dir}"/> + <jnode.copy-descriptors/> + <copy todir="${my-classes.dir}"> + <fileset dir="${my-src.dir}/commands" excludes="**/*.java,**/package.html"/> + <fileset dir="${my-src.dir}/test" excludes="**/*.java,**/package.html"/> + </copy> + </target> + +<!-- Compile subproject --> + <target name="compile" depends="prepare"> + <jnode.compile> + <src path="${my-src.dir}/commands"/> + <classpath refid="my-cp"/> + </jnode.compile> + </target> + + <target name="assemble" depends="compile"/> + + <target name="all" depends="assemble"/> + + <target name="clean"> + <jnode.clean/> + </target> +</project> Added: branches/jikesRVM/cli/cli.iml =================================================================== --- branches/jikesRVM/cli/cli.iml (rev 0) +++ branches/jikesRVM/cli/cli.iml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module relativePaths="true" type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" inherit-compiler-output="false"> + <output url="file://$MODULE_DIR$/build/classes" /> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src/commands" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module" module-name="shell" /> + <orderEntry type="module" module-name="core" /> + <orderEntry type="module" module-name="net" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/../core/lib/log4j-1.2.8.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/../net/lib/oncrpc.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module" module-name="fs" /> + </component> +</module> + Added: branches/jikesRVM/cli/descriptors/org.apache.tools.archive.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.apache.tools.archive.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.apache.tools.archive.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.apache.tools.archive" + name="Ant archive tools" + version="1.7.1" + provider-name="Apache Ant" + provider-url="http://ant.apache.org" + license-name="apache2.0"> + + <runtime> + <library name="ant.jar"> + <export name="org.apache.tools.tar.*" /> + <export name="org.apache.tools.zip.*" /> + <export name="org.apache.tools.bzip2.*" /> + </library> + </runtime> + + <extension point="org.jnode.security.permissions"> + <permission class="java.io.FilePermission" name="<<ALL FILES>>" actions="read,write"/> + <permission class="java.lang.RuntimePermission" name="readFileDescriptor"/> + <permission class="java.lang.RuntimePermission" name="writeFileDescriptor"/> + <permission class="java.util.PropertyPermission" name="*" actions="read,write"/> + </extension> +</plugin> Added: branches/jikesRVM/cli/descriptors/org.jnode.command.archive.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.jnode.command.archive.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.jnode.command.archive.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,283 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.jnode.command.archive" + name="JNode archive commands" + version="@VERSION@" + provider-name="@PROVIDER@" + license-name="lgpl"> + + <requires> + <import plugin="org.apache.tools.archive" /> + <import plugin="org.jnode.shell" /> + <import plugin="org.jnode.shell.syntax" /> + <import plugin="org.jnode.command.util" /> + </requires> + + <runtime> + <library name="jnode-cli.jar"> + <export name="org.jnode.command.archive.*" /> + </library> + </runtime> + + <extension point="org.jnode.shell.aliases"> + <alias name="bzip2" class="org.jnode.command.archive.BZipCommand" /> + <alias name="bunzip2" class="org.jnode.command.archive.BUnzipCommand" /> + <alias name="bzcat" class="org.jnode.command.archive.BZCatCommand" /> + <alias name="gzip" class="org.jnode.command.archive.GZipCommand" /> + <alias name="gunzip" class="org.jnode.command.archive.GUnzipCommand" /> + <alias name="tar" class="org.jnode.command.archive.TarCommand" /> + <alias name="unzip" class="org.jnode.command.archive.UnzipCommand" /> + <alias name="zcat" class="org.jnode.command.archive.ZCatCommand" /> + <alias name="zip" class="org.jnode.command.archive.ZipCommand" /> + </extension> + + <extension point="org.jnode.shell.syntaxes"> + <syntax alias="bunzip2"> + <empty description="decompress stdin to stdout" /> + <sequence description="decompress files"> + <optionSet> + <!-- BZip --> + <option argLabel="compress" shortName="z" longName="compress"/> + <option argLabel="decompress" shortName="d" longName="decompress"/> + <option argLabel="test" shortName="t" longName="test" /> + <option argLabel="keep" shortName="k" longName="keep" /> + <option argLabel="small" shortName="s" longName="small" /> + <!-- ArchiveCommand --> + <option argLabel="stdout" shortName="c" longName="stdout" /> + <option argLabel="force" shortName="f" longName="force" /> + <option argLabel="verbose" shortName="v" longName="verbose" /> + <option argLabel="quiet" shortName="q" longName="quiet" /> + <option argLabel="debug" longName="debug" /> + </optionSet> + <repeat> + <argument argLabel="files" /> + </repeat> + </sequence> + </syntax> + <syntax alias="bzcat"> + <empty description="decompress stdin to stdout" /> + <sequence description="decompress files to stdout"> + <optionSet> + <option argLabel="small" shortName="s" longName="small" /> + </optionSet> + <repeat> + <argument argLabel="files" /> + </repeat> + </sequence> + </syntax> + <syntax alias="bzip2"> + <empty description="compress stdin to stdout" /> + <sequence description="compress files"> + <optionSet> + <!-- BZipCommand --> + <option argLabel="c1" shortName="1" longName="fast" /> + <option argLabel="c2" shortName="2" /> + <option argLabel="c3" shortName="3" /> + <option argLabel="c4" shortName="4" /> + <option argLabel="c5" shortName="5" /> + <option argLabel="c6" shortName="6" /> + <option argLabel="c7" shortName="7" /> + <option argLabel="c8" shortName="8" /> + <option argLabel="c9" shortName="9" longName="best" /> + <!-- BZip --> + <option argLabel="decompress" shortName="d" longName="decompress" /> + <option argLabel="compress" shortName="z" longName="compress" /> + <option argLabel="test" shortName="t" longName="test" /> + <option argLabel="keep" shortName="k" longName="keep" /> + <option argLabel="small" shortName="s" longName="small" /> + <!-- ArchiveCommand --> + <option argLabel="stdout" shortName="c" longName="stdout" /> + <option argLabel="force" shortName="f" longName="force" /> + <option argLabel="verbose" shortName="v" longName="verbose" /> + <option argLabel="quiet" shortName="q" longName="quiet" /> + <option argLabel="debug" longName="debug" /> + </optionSet> + <repeat> + <argument argLabel="files" /> + </repeat> + </sequence> + </syntax> + <syntax alias="gunzip"> + <empty description="decompress standard input to standard output" /> + <sequence description="decompress files"> + <optionSet> + <!-- GZip --> + <option argLabel="test" shortName="t" longName="test" /> + <option argLabel="list" shortName="l" longName="list" /> + <option argLabel="recurse" shortName="r" longName="recursive" /> + <option argLabel="noname" shortName="n" longName="no-name" /> + <option argLabel="name" shortName="N" longName="name" /> + <!-- ArchiveCommand --> + <option argLabel="stdout" shortName="c" longName="stdout" /> + <option argLabel="force" shortName="f" longName="force" /> + <option argLabel="quiet" shortName="q" longName="quiet" /> + <option argLabel="verbose" shortName="v" longName="verbose" /> + <option argLabel="debug" longName="debug" /> + </optionSet> + <optional eager="true"> + <option argLabel="suffix" shortName="S" longName="suffix" /> + </optional> + <repeat minCount="1"> + <argument argLabel="files" /> + </repeat> + </sequence> + </syntax> + <syntax alias="gzip"> + <empty description="compress standard input to standard output" /> + <sequence description="compress files"> + <optionSet> + <!-- GZipCommand --> + <option argLabel="c1" shortName="1" longName="fast" /> + <option argLabel="c9" shortName="9" longName="best" /> + <option argLabel="decompress" shortName="d" longName="decompress" /> + <!-- GZip --> + <option argLabel="test" shortName="t" longName="test" /> + <option argLabel="list" shortName="l" longName="list" /> + <option argLabel="recurse" shortName="r" longName="recursive" /> + <option argLabel="noname" shortName="n" longName="no-name" /> + <option argLabel="name" shortName="N" longName="name" /> + <!-- ArchiveCommand --> + <option argLabel="stdout" shortName="c" longName="stdout" /> + <option argLabel="force" shortName="f" longName="force" /> + <option argLabel="quiet" shortName="q" longName="quiet" /> + <option argLabel="verbose" shortName="v" longName="verbose" /> + <option argLabel="debug" longName="debug" /> + </optionSet> + <optional eager="true"> + <option argLabel="suffix" shortName="S" longName="suffix" /> + </optional> + <repeat minCount="1"> + <argument argLabel="files" /> + </repeat> + </sequence> + </syntax> + <syntax alias="tar"> + <sequence> + <optionSet description="tar options"> + <!-- Tar Operations --> + <option argLabel="doAppend" shortName="r" longName="append" /> + <option argLabel="doCreate" shortName="c" longName="create" /> + <option argLabel="doConcat" shortName="A" longName="concatenate" /> + <option argLabel="doDiff" shortName="d" longName="diff" /> + <option argLabel="doExtract" shortName="x" longName="extract" /> + <option argLabel="doList" shortName="t" longName="list" /> + <option argLabel="doUpdate" shortName="u" longName="update" /> + <option argLabel="doDelete" longName="delete" /> + <!-- Tar Global Options --> + <option argLabel="archive" shortName="f" longName="file" /> + <option argLabel="bzip" shortName="j" longName="bzip2" /> + <option argLabel="fileList" shortName="T" longName="files-from"/> + <option argLabel="gzip" shortName="z" longName="gzip" /> + <option argLabel="interact" shortName="w" longName="interactive" /> + <option argLabel="keep_old" shortName="k" longName="keep-old-files" /> + <option argLabel="verify" shortName="W" longName="verify" /> + <option argLabel="xfile" shortName="X" longName="exclude-from"/> + <option argLabel="backup" longName="backup" /> + <option argLabel="keep_new" longName="keep-newer-files" /> + <option argLabel="removeFiles" longName="remove-files" /> + <option argLabel="showTotals" longName="totals" /> + <option argLabel="suffix" longName="suffix" /> + <option argLabel="unlink" longName="unlink" /> + <!-- Tar Path Parser Options --> + <option argLabel="dir" shortName="C" longName="directory" /> + <option argLabel="exclude" longName="exclude" label="pattern" /> + <option argLabel="noRecurse" longName="no-recursion" /> + <option argLabel="recurse" longName="recursion" /> + <!-- ArchiveCommand --> + <option argLabel="verbose" shortName="v" longName="verbose" /> + <option argLabel="stdout" shortName="O" longName="to-stdout" /> + <option argLabel="debug" longName="debug" /> + <!-- + <option argLabel="minDate" shortName="N" longName="newer" /> + <option argLabel="minMTime" longName="newer-mtime" /> + --> + </optionSet> + <repeat> + <argument argLabel="paths"/> + </repeat> + </sequence> + </syntax> + <syntax alias="unzip"> + <sequence> + <optionSet> + <!-- UnzipCommand --> + <option argLabel="backup" shortName="B"/> + <option argLabel="ignore-case" shortName="C"/> + <option argLabel="keep" shortName="n"/> + <option argLabel="overwrite" shortName="o"/> + <!-- Zip --> + <option argLabel="no-path" shortName="j"/> + <!-- Zip Operations --> + <option argLabel="freshen" shortName="f"/> + <option argLabel="list" shortName="l"/> + <option argLabel="test" shortName="t"/> + <option argLabel="update" shortName="u"/> + <!-- ArchiveCommand --> + <option argLabel="stdout" shortName="p"/> + <option argLabel="verbose" shortName="v"/> + <option argLabel="quiet" shortName="q"/> + <option argLabel="debug" longName="debug"/> + </optionSet> + <argument argLabel="archive"/> + <repeat> + <argument argLabel="patterns"/> + </repeat> + <!-- TODO + <repeat> + <option argLabel="exclude" shortName="x"/> + </repeat> + <optional> + <option argLabel="extract-dir" shortName="d"/> + </optional> + --> + </sequence> + </syntax> + <syntax alias="zcat"> + <empty description="decompress standard input to standard output" /> + <repeat minCount="1"> + <argument argLabel="files" /> + </repeat> + </syntax> + <syntax alias="zip"> + <sequence> + <optionSet> + <!-- ZipCommand --> + <option argLabel="files-stdin" shortName="@"/> + <option argLabel="tmp-dir" shortName="b"/> + <option argLabel="no-dirs" shortName="D"/> + <option argLabel="no-compress" shortName="n"/> + <option argLabel="recurse" shortName="r"/> + <!--<option argLabel="recurse-cd" shortName="R"/>--> + <option argLabel="newer" shortName="t"/> + <option argLabel="older" longName="tt"/> + <!-- Zip --> + <option argLabel="no-path" shortName="j"/> + <!-- Zip Operations --> + <option argLabel="delete" shortName="d"/> + <option argLabel="freshen" shortName="f"/> + <option argLabel="move" shortName="m"/> + <option argLabel="update" shortName="u"/> + <!-- ArchiveCommand --> + <option argLabel="quiet" shortName="q"/> + <option argLabel="verbose" shortName="v"/> + <option argLabel="debug" longName="debug"/> + </optionSet> + <argument argLabel="archive"/> + <repeat> + <alternatives> + <option argLabel="exclude" shortName="x"/> + <option argLabel="include" shortName="i"/> + <argument argLabel="patterns"/> + </alternatives> + </repeat> + </sequence> + </syntax> + </extension> + + <extension point="org.jnode.security.permissions"> + <permission class="java.io.FilePermission" name="<<ALL FILES>>" actions="read,write,delete"/> + <permission class="java.util.PropertyPermission" name="user.dir" actions="read,write"/> + <permission class="java.util.PropertyPermission" name="*" actions="read,write"/> + </extension> +</plugin> Added: branches/jikesRVM/cli/descriptors/org.jnode.command.argument.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.jnode.command.argument.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.jnode.command.argument.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.jnode.command.argument" + name="JNode command arguments" + version="@VERSION@" + provider-name="@PROVIDER@" + license-name="lgpl"> + + <requires> + <import plugin="org.jnode.shell.syntax"/> + <import plugin="org.jnode.command.util"/> + </requires> + + <runtime> + <library name="jnode-cli.jar"> + <export name="org.jnode.command.argument.*"/> + </library> + </runtime> +</plugin> Added: branches/jikesRVM/cli/descriptors/org.jnode.command.common.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.jnode.command.common.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.jnode.command.common.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.jnode.command.common" + name="JNode common commands" + version="@VERSION@" + provider-name="@PROVIDER@" + license-name="lgpl"> + + <requires> + <import plugin="org.jnode.driver.console"/> + <import plugin="org.jnode.shell"/> + <import plugin="org.jnode.shell.help"/> + <import plugin="org.jnode.shell.syntax"/> + </requires> + + <runtime> + <library name="jnode-cli.jar"> + <export name="org.jnode.command.common.*"/> + </library> + </runtime> + + <extension point="org.jnode.shell.aliases"> + <alias name="basename" class="org.jnode.command.common.BasenameCommand"/> + <alias name="date" class="org.jnode.command.common.DateCommand"/> + <alias name="dirname" class="org.jnode.command.common.DirnameCommand"/> + <alias name="echo" class="org.jnode.command.common.EchoCommand"/> + <alias name="env" class="org.jnode.command.common.EnvCommand"/> + <alias name="exit" class="org.jnode.command.common.ExitCommand"/> + <alias name="expr" class="org.jnode.command.common.ExprCommand"/> + <alias name="false" class="org.jnode.command.common.FalseCommand"/> + <alias name="help" class="org.jnode.command.common.HelpCommand"/> + <alias name="history" class="org.jnode.command.common.HistoryCommand"/> + <alias name="man" class="org.jnode.command.common.HelpCommand"/> + <alias name="sleep" class="org.jnode.command.common.SleepCommand"/> + <alias name="test" class="org.jnode.command.common.UnixTestCommand"/> + <!-- is not getting FilePermission read --> + <alias name="time" class="org.jnode.command.common.TimeCommand"/> + <alias name="true" class="org.jnode.command.common.TrueCommand"/> + <alias name="uptime" class="org.jnode.command.common.UptimeCommand"/> + <alias name="[" class="org.jnode.command.common.UnixTestCommand"/> + </extension> + + <extension point="org.jnode.shell.syntaxes"> + <syntax alias="basename"> + <sequence description="strip the directory prefix from a filename, as well as an option suffix"> + <argument argLabel="name" /> + <optional><argument argLabel="suffix"/></optional> + </sequence> + </syntax> + <syntax alias="date" description="Print the current date"/> + <syntax alias="dirname"> + <argument argLabel="name"/> + </syntax> + <syntax alias="echo" description="Print the arguments"> + <repeat> + <argument argLabel="text"/> + </repeat> + </syntax> + <syntax alias="env"> + <empty description="Print the system properties"/> + <option argLabel="env" shortName="e" longName="env" + description="Print the system environment variables"/> + <option argLabel="shell" shortName="s" longName="shell" + description="Print the current shell properties"/> + </syntax> + <syntax alias="exit" description="Exit the current shell"/> + <syntax alias="false"> + <empty description="Set a non-zero return code"/> + </syntax> + <syntax alias="help"> + <empty description="Print help about 'help'"/> + <argument argLabel="alias" description="Print help about a command alias or class"/> + </syntax> + <syntax alias="history"> + <empty description="List history entries"/> + <sequence description="Run a history command"> + <alternatives><empty/><option argLabel="test" shortName="t" longName="test"/></alternatives> + <alternatives> + <argument argLabel="index"/> + <argument argLabel="prefix"/> + </alternatives> + </sequence> + </syntax> + <syntax alias="man"> + <empty description="Print help about 'man'"/> + <argument argLabel="alias" description="Print help about a command alias or class"/> + </syntax> + <syntax alias="sleep" description="Sleep for a given number of seconds"> + <argument argLabel="seconds"/> + </syntax> + <syntax alias="time" description="Measures command execution time"> + <sequence> + <argument argLabel="alias"/> + <repeat><argument argLabel="args"/></repeat> + </sequence> + </syntax> + <syntax alias="true"> + <empty description="Set a zero return code"/> + </syntax> + </extension> + + <extension point="org.jnode.security.permissions"> + <permission class="java.io.FilePermission" name="<<ALL FILES>>" actions="read"/> + <permission class="java.util.PropertyPermission" name="*" actions="read,write"/> + </extension> +</plugin> Added: branches/jikesRVM/cli/descriptors/org.jnode.command.dev.ant.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.jnode.command.dev.ant.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.jnode.command.dev.ant.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.jnode.command.dev.ant" + name="JNode Ant Commands" + version="@VERSION@" + license-name="lgpl" + provider-name="JNode.org"> + + <requires> + <import plugin="org.jnode.shell.help"/> + <import plugin="org.apache.tools.ant"/> + <import plugin="org.apache.tools.ant-launcher"/> + </requires> + + <runtime> + <library name="jnode-cli.jar"> + <export name="org.jnode.command.dev.ant.*"/> + </library> + </runtime> + + <extension point="org.jnode.shell.aliases"> + <alias name="ant" class="org.jnode.command.dev.ant.AntCommand"/> + </extension> + + <extension point="org.jnode.security.permissions"> + <permission class="java.io.FilePermission" name="<<ALL FILES>>" actions="read,write"/> + <permission class="java.lang.RuntimePermission" name="setSecurityManager" actions="*" /> + <permission class="java.lang.RuntimePermission" name="createClassLoader" actions="*" /> + <permission class="java.lang.RuntimePermission" name="setIO" actions="*" /> + <permission class="java.lang.RuntimePermission" name="exitVM" actions="*" /> + <permission class="org.jnode.security.JNodePermission" name="getVmClass" actions="*" /> + <permission class="java.util.PropertyPermission" name="*" actions="read,write"/> + </extension> + +</plugin> Added: branches/jikesRVM/cli/descriptors/org.jnode.command.dev.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.jnode.command.dev.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.jnode.command.dev.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.jnode.command.dev" + name="JNode developer commands" + version="@VERSION@" + provider-name="@PROVIDER@" + license-name="lgpl"> + + <requires> + <import plugin="org.jnode.debug"/> + <import plugin="org.classpath.ext.jdwp"/> + <import plugin="org.jnode.shell.syntax"/> + </requires> + + <runtime> + <library name="jnode-cli.jar"> + <export name="org.jnode.command.dev.*"/> + </library> + </runtime> + + <extension point="org.jnode.shell.aliases"> + <alias name="compile" class="org.jnode.command.dev.CompileCommand"/> + <alias name="debug" class="org.jnode.command.dev.DebugCommand"/> + <alias name="defaultCompiler" class="org.jnode.command.dev.DefaultCompilerCommand"/> + <alias name="disasm" class="org.jnode.command.dev.DisassembleCommand"/> + <alias name="netout" class="org.jnode.command.dev.RemoteOutputCommand"/> + </extension> + + <extension point="org.jnode.shell.syntaxes"> + <syntax alias="compile" description="Compile a class to native code"> + <sequence> + <optionSet> + <option argLabel="test" longName="test"/> + <option argLabel="level" longName="level"/> + </optionSet> + <argument argLabel="className"/> + </sequence> + </syntax> + <syntax alias="defaultCompiler" description="Set the default native compiler optimization level"> + <option argLabel="level" longName="level"/> + </syntax> + <syntax alias="disasm" description="Disassemble a native code class"> + <sequence> + <optionSet> + <option argLabel="test" longName="test"/> + <option argLabel="level" longName="level"/> + </optionSet> + <argument argLabel="className"/> + <optional> + <argument argLabel="methodName"/> + </optional> + </sequence> + </syntax> + <syntax alias="debug"> + <optional description="Run a JDWP listener to enable remote debugging"> + <option argLabel="port" shortName="p"/> + </optional> + </syntax> + <syntax alias="remoteout"> + <optionSet description="Redirect output and logging to a remote receiver"> + <option argLabel="host" shortName="h" longName="host"/> + <option argLabel="port" shortName="p" longName="port"/> + <option argLabel="udp" shortName="u" longName="udp"/> + </optionSet> + </syntax> + </extension> + + <extension point="org.jnode.security.permissions"> + <permission class="java.io.FilePermission" name="<<ALL FILES>>" actions="read,write"/> + <permission class="java.lang.RuntimePermission" name="modifyThreadGroup"/> + <permission class="java.lang.RuntimePermission" name="setIO"/> + <permission class="java.lang.RuntimePermission" name="exitVM"/> + <permission class="java.net.SocketPermission" name="*:1-" actions="resolve,listen,connect"/> + <permission class="java.util.PropertyPermission" name="*" actions="read,write"/> + </extension> +</plugin> Added: branches/jikesRVM/cli/descriptors/org.jnode.command.file.xml =================================================================== --- branches/jikesRVM/cli/descriptors/org.jnode.command.file.xml (rev 0) +++ branches/jikesRVM/cli/descriptors/org.jnode.command.file.xml 2009-09-09 15:23:20 UTC (rev 5667) @@ -0,0 +1,400 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plugin SYSTEM "jnode.dtd"> + +<plugin id="org.jnode.command.file" + name="JNode file commands" + version="@VERSION@" + provider-name="@PROVIDER@" + license-name="lgpl"> + + <requires> + <import plugin="org.jnode.command.argument"/> + <import plugin="org.jnode.command.util"/> + <import plugin="org.jnode.driver"/> + <import plugin="org.jnode.fs"/> + <import plugin="org.jnode.fs.service"/> + <import plugin="org.jnode.shell.syntax"/> + <import plugin="org.jnode.util"/> + </requires> + + <runtime> + <library name="jnode-cli.jar"> + <export name="org.jnode.command.file.*"/> + </library> + </runtime> + + <extension point="org.jnode.shell.aliases"> + <alias name="cat" class="org.jnode.command.file.CatCommand"/> + <alias name="cd" class="org.jnode.command.file.CdCommand" internal="yes"/> + <alias name="cp" class="org.jnode.command.file.CpCommand"/> + <alias name="cut" class="org.jnode.command.file.CutCommand"/> + <alias name="del" class="org.jnode.command.file.DeleteCommand"/> + <alias name="df" class="org.jnode.command.file.DFCommand"/> + <alias name="dir" class="org.jnode.command.file.DirCommand"/> + <alias name="du" class="org.jnode.command.file.DuCommand"/> + <alias name="find" class="org.jnode.command.file.FindCommand"/> + <alias name="grep" class="org.jnode.command.file.GrepCommand"/> + <alias name="head" class="org.jnode.command.file.HeadCommand"/> + <alias name="hexdump" class="org.jnode.command.file.HexdumpCommand"/> + <alias name="ls" class="org.jnode.command.file.DirCommand"/> + <alias name="md5sum" class="org.jnode.command.file.Md5SumCommand"/> + <alias name="mkdir" class="org.jnode.command.file.MkdirCommand"/> + <alias name="paste" class="org.jnode.command.file.PasteCommand"/> + <alias name="pwd" class="org.jnode.command.file.PwdCommand"/> + <alias name="rm" class="org.jnode.command.file.DeleteCommand"/> + <alias name="sort" class="org.jnode.command.file.SortCommand"/> + <alias name="tail" class="org.jnode.command.file.TailCommand"/> + <alias name="tee" class="org.jnode.command.file.TeeCommand"/> + <alias name="touch" class="org.jnode.command.file.TouchCommand"/> + <alias name="wc" class="org.jnode.command.file.WcCommand"/> + </extension> + + <extension point="org.jnode.shell.syntaxes"> + <syntax alias="cat"> + <empty description="copy standard input to standard output"/> + <sequence description="concatenate files to standard output"> + <optionSet> + <option argLabel="num-nonblank" shortName="b" longName="number-nonblank"/> + <option argLabel="num" shortName="n" longName="number"/> + <option argLabel="squeeze" shortName="s" longName="sqeeze-blank"/> + <option argLabel="show-ends" shortName="E" longName="show-ends"/> + </optionSet> + <repeat> + <argument argLabel="file"/> + </repeat> + </sequence> + <sequence description="fetch and concatenate urls to standard output"> + <option argLabel="urls" shortName="u" longName="urls"/> + <repeat minCount="1"> + <argument argLabel="url"/> + </repeat> + </sequence> + </syntax> + <syntax alias="cd"> + <empty description="change the current directory to the 'user.home' directory"/> + <argument argLabel="directory" description="change the current directory to 'directory'"/> + </syntax> + <syntax alias="cp"> + <sequence description="copy files or directories"> + <optionSet> + <option argLabel="force" shortName="f" longName="force"/> + <option argLabel="update" shortName="u" longName="update"/> + <option argLabel="interactive" shortName="i" longName="interactive"/> + <option argLabel="recursive" shortName="r" longName="recursive"/> + <option argLabel="verbose" shortName="v" longName="verbose"/> + </optionSet> + <repeat minCount="1"> + <argument argLabel="source"/> + </repeat> + <argument argLabel="target"/> + </sequence> + </syntax> + <syntax alias="cut"> + <sequence description="select parts of lines"> + <optionSet> + <option argLabel="byte-range" shortName="b" longName="bytes" /> + <option argLabel="char-range" shortName="c" longName="characters"/> + <option argLabel="field-range" shortName="f" longName="fields"/> + <option argLabel="in-delim" shortName="d" longName="delimiter"/> + <option argLabel="suppress" shortName="s" longName="only-delimited"/> + <option argLabel="complement" longName="complement"/> + <option argLabel="out-delim" longName="output-delimiter"/> + </optionSet> + <repeat> + <argument argLabel="files"/> + </repeat> + </sequence> + </syntax> + <syntax alias="del"> + <sequence description="delete files and directories"> + <optionSet> + <option argLabel="recursive" shortName="r" longName="recursive"/> + <option argLabel="force" shortName="f" longName="force" /> + <option argLabel="interactive" shortName="i" longName="interactive" /> + <option argLabel="verbose" shortName="v" longName="verbose" /> + <option argLabel="onefs" longName="one-file-system"/> + </optionSet> + <repeat minCount="1"> + <argument argLabel="paths"/> + </repeat> + </sequence> + </syntax> + <syntax alias="df"> + <sequence description="display disk usage for file systems"> + <optionSet> + <option argLabel="human-read-bin" shortName="h" longName="human-readable"/> + <option argLabel="human-read-dec" shortName="H" longName="si"/> + <option argLabel="show-all" shortName="a" longName="all"/> + <option argLabel="block-size" shortName="B" longName="block-size"/> + <option argLabel="block-size-1k" shortName="k"/> + <!-- + <option argLabel="posix" shortName="P" longName="portability"/> + <option argLabel="inodes" shortName="i" longName="inodes"/> + <option argLabel="local" shortName="l" longName="local"/> + <option argLabel="sync" longName="sync"/> + <option argLabel="no-sync" longName="no-sync"/> + <option argLabel="fs-type" shortName="t" longName="type"/> + <option argLabel="print-type" shortName="T" longName="print-type"/> + <option argLabel="ex-type" shortName="x" longName="exclude-type"/> + --> + </optionSet> + <optional> + <alternatives> + <argument argLabel="path"/> + <argument argLabel="device"/> + </alternatives> + </optional> + </sequence> + </syntax> + <syntax alias="dir"> + <empty description="list the current directory"/> + <argument argLabel="path" description="list a file or directory"/> + </syntax> + <syntax alias="du"> + <sequence description="print file sizes"> + <repeat minCount="0"> + <argument argLabel="directory" description="directory to start printing sizes recursively"/> + </repeat> + <optionSet> + <option argLabel="sum" shortName="s" longName="summarize"/> + <option argLabel="all" shortName="a" longName="all"/> + <option argLabel="human-readable" shortName="h" longName="human-readable"/> + </optionSet> + </sequence> + </syntax> + <syntax alias="find"> + <sequence description="find files or directories"> + <repeat minCount="0"> + <argument argLabel="directory"/> + </repeat> + <optionSet> + <option argLabel="type" shortName="t" longName="type"/> + <option argLabel="maxdepth" shortName="D" longName="maxdepth"/> + <option argLabel="mindepth" shortName="d" longName="mindepth"/> + <option argLabel="name" shortName="n" longName="name"/> + <option argLabel="iname" shortName="N" longName="iname"/> + </optionSet> + </sequence> + </syntax> + <syntax alias="grep"> + <!-- grep [Options] <pattern> [<file>...] or + grep [Options] (-e <pattern> | -f <file>)... [<file>...] --> + <sequence description="Search for lines that match a string or regex"> + <optionSet> + <!-- Matcher type --> + <option argLabel="matcher-fixed" shortName="F" longName="fixed-strings"/> + <option argLabel="matcher-ext" shortName="E" longName="extended-regexp"/> + <option argLabel="matcher-basic" shortName="G" longName="basic-regexp"/> + <option argLabel="matcher-perl" shortName="P" longName="perl-regexp"/> + <!-- Matching options --> + <option argLabel="ignore-case" shortName="i" longName="ignore-case"/> + <option argLabel="invert" shortName="v" longName="invert-match"/> + <option argLabel="word-match" shortName="w" longName="word-regexp"/> + <option argLabel="line-match" shortName="x" longName="line-regexp"/> + <!-- Output options --> + <option argLabel="show-count" shortName="c" longName="count"/> + <option argLabel="show-files-nomatch" shortName="L" longName="files-without-match"/> + <option argLabel="show-files-match" shortName="l" longName="files-with-match"/> + <option argLabel="show-only-match" shortName="o" longName="only-matching"/> + <option argLabel="max-matches" shortName="m" longName="max-count"/> + <option argLabel="quiet" shortName="q" longName="quiet"/> + <option argLabel="quiet" longName="silent"/> + <option argLabel="suppress" shortName="s" longName="no-messages"/> + <!-- Output prefix control --> + <option argLabel="prefix-byte" shortName="b" longName="byte-offset"/> + <option argLabel="prefix-file" shortName="H" longName="with-filename"/> + <option argLabel="prefix-nofile" shortName="h" longName="no-filename"/> + <option argLabel="prefix-label" longName="label"/> + <option argLabel="prefix-line" shortName="n" longName="line-number"/> + <option argLabel="prefix-tab" shortName="T" longName="initial-tab"/> + <option argLabel="prefix-null" shortName="Z" longName="null"/> + <!-- Context lines --> + <option argLabel="show-context-after" shortName="A" longName="after-context"/> + <option argLabel="show-context-before" shortName="B" longName="before-context"/> + <option argLabel="show-context-both" shortName="C" longName="context"/> + <!-- File/Directory selection --> + <option argLabel="mode-binary" longName="binary-files"/> + <option argLabel="mode-binary-text" shortName="a" longName="text"/> + <option argLabel="mode-binary-skip" shortName="I"/> + <option argLabel="mode-device" shortName="D" longName="devices"/> + <option argLabel="mode-dir" shortName="d" longName="directories"/> + <option argLabel="mode-dir-recurse" shortName="r" longName="recursive"/> + <option argLabel="mode-dir-recurse" shortName="R"/> + <option argLabel="pattern-exclude" longName="exclude"/> + <option argLabel="pattern-exclude-file" longName="exclude-from"/> + <option argLabel="pattern-exclude-dir" longName="exclude-dir"/> + <option argLabel="pattern-include" longName="include"/> + <!-- Other options --> + <option argLabel="null-term" shortName="z" longName="null-data"/> + <option argLabel="debug" longName="debug"/> + </optionSet> + <alternatives> + <repeat minCount="1"> + <alternatives> + <option argLabel="patterns" shortName="e"/> + <option argLabel="pattern-files" shortName="f"/> + </alternatives> + </repeat> + <argument argLabel="patterns"/> + </alternatives> + <repeat> + <argument argLabel="files"/> + </repeat> + </sequence> + </syntax> + <syntax alias="head"> + <sequence> + <optionSet> + <option argLabel="quiet" shortName="q" longName="quiet"/> + <option argLabel="quiet" longName="silent"/> + <option argLabel="verbose" shortName="v" longName="verbose"/> + <option argLabel="bytes" shortName="c" longName="bytes"/> + <option argLabel="lines" shortName="n" longName="lines"/> + </optionSet> + <repeat> + <argument argLabel="files" /> + </repeat> + </sequence> + </syntax> + <syntax alias="hexdump"> + <empty description="print a hex dump of standard input"/> + <argument argLabel="file" description="print a hex dump of a file"/> + <option argLabel="url" shortName="u" longName="url" description="print a hex dump of a URL"/> + </syntax> + <syntax alias="ls"> + <empty description="list the current directory"/> + <repeat> + <argument argLabel="path" description="list files or directories"/> + </repeat> + </syntax> + <syntax alias="md5sum"> + <empty description="Calculates the MD5 digest for standard input"/> + <option argLabel="checkfile" shortName="c" longName="check"/> + <sequence description="Calculates the MD5 digests for files"> + <optional eager="true"> + <option argLabel="recursive" shortName="r" longName="recursive"/> + </optional> + <repeat minCount="1"> + <argument argLabel="paths"/> + </repeat> + </sequence> + </syntax> + <syntax alias="mkdir"> + <argument argLabel="directory" description="create a new directory"/> + </syntax> + <syntax alias="paste"> + <empty /> + <sequence> + <optionSet> + <option argLabel="serial" shortName="s" longName="serial"/> + <option argLabel="delims" shortName="d" longName="delimiters"/> + </optionSet> + <repeat> + <argument argLabel="files"/> + </repeat> + </sequence> + </syntax> + <syntax alias="pwd"> + <empty description="show the pathname for the current directory"/> + </syntax> + <syntax alias="rm"> + <sequence description="delete files and directories"> + <optionSet> + <option argLabel="recursive" shortName="r" longName="recursiv... [truncated message content] |