Does Java have 'Debug' and 'Release' build mode like C#?

后端 未结 3 994
轮回少年
轮回少年 2020-12-24 01:09

In C#, we have 2 modes to build projects : Debug and Release, I wonder if Java has the same thing. I am using IntelliJ IDEA as Java IDE and so far

3条回答
  •  既然无缘
    2020-12-24 01:48

    You're asking for different kinds of builds to compile in different things I guess. For example to have Debug.WriteLine and Console.WriteLine.

    "No, Java doesn't have an exact match for that functionality. You could use aspects, or use an IOC container to inject different implementation classes." stole this from the following question: Conditional Java compilation

    (there're other nice answers for you there)

提交回复
热议问题