You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Contents

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:

sbt stage

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

In Cygwin:

To execute daffodil:

$ ./daffodil-core/target/start <options>

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

$ ./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:

$ ./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:

$ sbt stage

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

$ ./daffodil-core/target/start <options>

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

$ ./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:

$ ./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!

Run Daffodil from Eclipse

  • No labels