I want to disable compiling some section code and system jobs in the Scala Play Framework for example pass a flag at the assembly time jar file to disable compiling some sections.
Asked
Active
Viewed 62 times
0
-
What do you mean disable compiling ?! Code have to be compiled if you want to run it afterwards. – Gaël J Nov 04 '22 at 19:42
-
@GaëlJ for example if I want to build two jar files with a source code, but to prevent compiling extra source code, I want to pass a flag or a config in compile time and disable building some section of code. – moein zargarzadeh Nov 04 '22 at 20:35
-
2Look at SBT submodules then. Each submodule will produce a JAR. – Gaël J Nov 04 '22 at 21:43
-
Can you comment out the section of code that shouldn't be compiled? – Dmytro Mitin Dec 08 '22 at 00:08
-
@DmytroMitin Is it possible to comment section of codes in compile time automatically? – moein zargarzadeh Jan 27 '23 at 10:34
-
1@moeinzargarzadeh https://stackoverflow.com/questions/61796570/scala-conditional-compilation – Dmytro Mitin Jan 27 '23 at 11:04