Hello, Ant.
You wrote 4 мая 2013 г., 12:08:41:
LS> (2)
LS> Then I tried to construct list of headers on-the-fly with <mapper>
LS> inside <uptodate>. And failed completely, as I could use
LS> <packagemapper> to convert from path to dotted-delimetered name of
LS> file, but after that I could not convert dots to underscores, as
LS> <regexpmapper> require FULL name in "to" attribute, not only
LS> replacement. And, yes, what should I do if my paths contains dots!?
LS> It will break everything!
Ok, this construction works:
<loadresource property="java.sources.with.native">
<propertyresource name="classes.native" />
<filterchain>
<tokenfilter>
<stringtokenizer delims=","/>
<replacestring from="." to="/"/>
<replaceregex pattern="$$" replace=".java" />
<tokenfilter>
<filterchain>
<loadresource>
<uptodate property="javah.skip">
<srcfiles dir="${path.src}/src" includes="${java.sources.with.native}" />
<chainedmapper>
<packagemapper from="*.java" to="${path.native}/*" />
<filtermapper>
<replacestring from="." to="_" />
<suffixlines suffix=".h" />
<filtermapper>
</chainedmapper>
</uptodate>
--
// Black Lion AKA Lev Serebryakov <[email protected]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]