Is it possible to exclude a class from compiled the jar file using the Simple Library Compiler tool?
I want to do this as I am writing a listview CellFactory helper. The library includes a dummy class (in a seperate file) that is required to compile the library. Using Eclipse, I can export the jar without that class. The class is then replaced when the B4j project is compiled with a B4j class module with the same name, which does the work.
Because the cellfactory uses typed variables, a different class name (and separate library) is required for each listview instance, it would make it easy to make the changes and recompile the library with SLC.
I realize that this is a bit of a hack and there are probably a thousand reasons why it shouldn't be done. But it makes it pretty straightforward to manage the cellfactory updates within B4j code.
I am not entirely sure what the -b4aignore field can be used for. But I think I need to be able to add an excludes attribute to javac to accomplish this.
I want to do this as I am writing a listview CellFactory helper. The library includes a dummy class (in a seperate file) that is required to compile the library. Using Eclipse, I can export the jar without that class. The class is then replaced when the B4j project is compiled with a B4j class module with the same name, which does the work.
Because the cellfactory uses typed variables, a different class name (and separate library) is required for each listview instance, it would make it easy to make the changes and recompile the library with SLC.
I realize that this is a bit of a hack and there are probably a thousand reasons why it shouldn't be done. But it makes it pretty straightforward to manage the cellfactory updates within B4j code.
I am not entirely sure what the -b4aignore field can be used for. But I think I need to be able to add an excludes attribute to javac to accomplish this.
Last edited: