Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents

Table of Contents
excludeContents

Run Daffodil from the Command Line/Terminal

Windows

Install and Configure Cygwin to Run Daffodil

In the Windows Command Line (cmd.exe), CD to your local DFDL repository.  Default is likely "C:\Users\UserName\git\dfdl".

The command line of Daffodil is invoked through an auto-generated bash script. To generate the script type the following command:

Code Block
sbt stage

The script is created in daffodil-core/target/start

In Cygwin:

To execute daffodil:

Code Block
languagebash
$ ./daffodil-core/target/start <options>

To determine the usage, execute the script with the --help option

Code Block
languagebash
$ ./daffodil-core/target/start --help

The result of the above command should display several help options for the daffodil program.  If it doesn't, please make sure that you've followed all of the previous steps.

From Cygwin, try this:

Code Block
languagebash
$ ./daffodil-core/target/start parse -s daffodil-core/src/test/resources/test-suite/tresys-contributed/AB.dfdl.xsd daffodil-core/src/test/resources/test-suite/tresys-contributed/AB006.in

If the above executes and prints out an infoset as a result, you've set up everything correctly and you're ready to start using Daffodil!

Linux

The command line of Daffodil is invoked through an autogenerated bash script.

To generate the script run:

Code Block
languagebash
$ sbt stage

The script is created in daffodil-core/target/start, to execute daffodil:

Code Block
languagebash
$ ./daffodil-core/target/start <options>

To determine the usage, execute the script with the --help option

Code Block
languagebash
$ ./daffodil-core/target/start --help

The above should printout information regarding the various options you can run Daffodil with.  If it doesn't, please make sure that you've followed all of the steps.

Try this:

Code Block
languagebash
$ ./daffodil-core/target/start parse -s daffodil-core/src/test/resources/test-suite/tresys-contributed/AB.dfdl.xsd daffodil-core/src/test/resources/test-suite/tresys-contributed/AB006.in

If the above executes and prints out an infoset as a result, you've set up everything correctly and you're ready to start using Daffodil!

...

Page content removed(obsolete). See https://cwiki.apache.org/confluence/display/DAFFODIL/For+Contributors