I'm using the filters feature and it works if my filter file is present.
However, I have a subproject that does not need filtering.  Since my
resources are defined in a master project.xml, I have no choice but to set
filtering on for the entire project.  However, if this filter file doesn't
exist, maven craps out:

BUILD FAILED
Must specify a file not a directory in the filtersfile
attribute:D:\projects\MDSP\maven\sources\cs-common\src\conf.dev\dev.properti
es
File...... D:\projects\MDSP\maven\sources\maven\maven.xml
Element... ant:filter
Line...... 8
Column.... 72
Must specify a file not a directory in the filtersfile
attribute:D:\projects\MDSP\maven\sources\cs-common\src\conf.dev\dev.properti
es

I tried to be sneaky and use the ANT available task but that isn't working:

  <preGoal
    name="test:test-resources">
    <ant:available filepath="${basedir}/src/conf.dev/"
file="dev.properties">
      <ant:filter filtersfile="${basedir}/src/conf.dev/dev.properties" />
    </ant:available>
  </preGoal>

Is there a way to make the filtering conditional on the filter file being
present?  Is this a bug?

Regards,

Michael Mattox
Tech Lead MDSP Communication Services
Noisy le Grand - MTG - 01 49 31 63 74


--
This E-mail is confidential.  It may also be legally privileged.  If you are
not the addressee you may not copy, forward, disclose or use any part of it.
If you have received this message in error, please delete it and all copies
from your system and notify the sender immediately by return E-mail.
Internet communications cannot be guaranteed to be timely, secure, error or
virus-free.  The sender does not accept liability for any errors or omissions.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to