Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I miss the fileset/@dir attribute #8

Open
DavidPerezIngeniero opened this issue Jan 9, 2015 · 2 comments
Open

I miss the fileset/@dir attribute #8

DavidPerezIngeniero opened this issue Jan 9, 2015 · 2 comments

Comments

@DavidPerezIngeniero
Copy link

I need to specify a base directory for reading resources.

e.g.:
From directory /home/d/project/a/b, I need to copy the folder "c" to $INSTALL_PATH/d/, except the c/e.
In IzPack XML it's very easy to do so:

<fileset dir='/home/d/project/a/b' includes='c' targetdir='$INSTALL_PATH/d/'>
   <include name='c/**'/>
   <exclude name="e"/>
</fileset>

A need a base directory for referencing nested excludes and includes.
The provided syntax can be clumsy, when you have to specify a lot of includes and excludes.

fileset:
   includes: /home/d/project/a/b/**
   excludes:  /home/d/project/a/b/e/**

instead of:

fileset:
   dir:  /home/d/project/a
   includes: b/**
   excludes:  e/**

How can I do it with sbt-izpack?

@bmc
Copy link
Owner

bmc commented Jan 9, 2015

Can't you use ${baseDirectory} for that? See http://software.clapper.org/sbt-izpack/#the_yaml_configuration_file

@bmc
Copy link
Owner

bmc commented Jan 9, 2015

Also, take a look at this example file, which I use for testing: https://github.com/bmc/sbt-izpack/blob/master/src/testproj/src/install.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants