Versions Compared

Key

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

...

Run Daffodil from Eclipse

Open Eclipse.

Make sure that you are in the Scala Perspective.

Select the project "daffodil-core"

From the top menu click Run -> Run Configurations

Image Added

The Run Configurations dialog will appear.  Select "Scala Application" from the left menu.

Image Added

Click the button circled in red below:

Image Added

You should now see the following window:

Image Added

For Name: Replace "New_configuration" with "Daffodil Main".

In the field beneath "Main class" enter "edu.illinois.ncsa.daffodil.Main"

The dialog should look like the following:

Image Added

Now select the "Arguments" tab.

Image Added

This is where you can pass in the various options that Daffodil recognizes as well as any JVM arguments you may need.

We're going to start wilth the following settings:

Program arguments:

Code Block
parse -s src/test/resources/test-suite/tresys-contributed/AB.dfdl.xsd  src/test/resources/test-suite/tresys-contributed/AB006.in

VM arguments:

Code Block
-Xms512M -Xmx1512M -XX:+HeapDumpOnOutOfMemoryError

When complete your dialog should resemble the following:

Image Added

Click Apply.

Click Run.

After some period of time you'll see the following output:

Image Added