You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the 'generate' goal of the maven-hawtjni-plugin with the nativeSourceDirectory option. It works really well when the same set of native source files are used to produce the native library for different platforms. However, sometimes, some projects use different set of native source files for different OSes. (e.g. unix.c on Linux and Solaris and win32.c on Windows)
Maven profile might help specify different nativeSourceDirectory for different platforms, but it's not a good idea when only small number of .c files are platform dependent and all other .c files are universal.
Therefore, it would be great if there's a way to include/exclude a set of files from nativeSourceDirectory, so that a user can use Maven profile to include the files that are relevant to the current platform only (or to exclude the files that are irrelevant to the current platform.) For example:
A workaround would be to use a plugin like maven-antrun-plugin or copy-maven-plugin to selectively copy the native source files to another directory and specify that directory to nativeSourceDirectory, but it will be much cleaner and more efficient to have this feature in maven-hawtjni-plugin.
I'm using the 'generate' goal of the maven-hawtjni-plugin with the
nativeSourceDirectory
option. It works really well when the same set of native source files are used to produce the native library for different platforms. However, sometimes, some projects use different set of native source files for different OSes. (e.g. unix.c on Linux and Solaris and win32.c on Windows)Maven profile might help specify different
nativeSourceDirectory
for different platforms, but it's not a good idea when only small number of .c files are platform dependent and all other .c files are universal.Therefore, it would be great if there's a way to include/exclude a set of files from
nativeSourceDirectory
, so that a user can use Maven profile to include the files that are relevant to the current platform only (or to exclude the files that are irrelevant to the current platform.) For example:The text was updated successfully, but these errors were encountered: