c*****t 发帖数: 1879 | 1 Anyways to remove annotations while compiling the code.
For example, I may have
@Test
public void func ();
for tools that are used in development phase, but is it possible to
remove @Test for release build, besides setting the target VM to 1.4?
Thanks. | b******y 发帖数: 9224 | 2 not sure, but, you can use "ant" to invoke a text parser to remove line by
line those annotations. Not an ideal way, but it should work fine. | h**j 发帖数: 2033 | 3 ant preprocess task
【在 c*****t 的大作中提到】 : Anyways to remove annotations while compiling the code. : For example, I may have : @Test : public void func (); : for tools that are used in development phase, but is it possible to : remove @Test for release build, besides setting the target VM to 1.4? : Thanks.
| c*****t 发帖数: 1879 | 4 Thanks. I will check it out. |
|