This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / JAVA编译时好象没有C的"宏"(MACRO)吧? 如果我想根据编译的一个参数,生成不同的package name , 有哪些IDE能支持? 实在不行,就只好编一个scan & replace program which pre-runs before compiling?
-nicetomeetyou(蓦然回首彩虹跨天地);
2010-1-5
(#5781467@0)
-
用Apache Ant编译即可达到你的要求。
-yo1yo2(青青);
2010-1-5
(#5781484@0)
-
有时间去试试, 同样的CODE,在不同的客户要根据他们的要求生成不同的src folder structure....
-nicetomeetyou(蓦然回首彩虹跨天地);
2010-1-5
(#5781529@0)
-
lol.... you too out NG.
-zixstudio(Ipwnnoobz);
2010-1-11
(#5796588@0)
-
能详细讲讲吗?我觉得这与具体用的IDE有关系,因为IDE会生成project properties attributes and they may include src folder information.....If you simply use apache ant in command mode, it will damage project property setting.When you open the project inside the IDE, it will probably fail.
-nicetomeetyou(蓦然回首彩虹跨天地);
2010-1-8
{64}
(#5790618@0)
-
WOW, 没听说过ASPECT ORIENTED吗?????????
-youbet(寻常巷陌);
2010-1-5
(#5783459@0)
-
That is the cross-cutting business logic definition/implementation. What I require is a simple dynamic package name change while building. Normally when project is created, src folder struct is defined already...Do I miss anything?
-nicetomeetyou(蓦然回首彩虹跨天地);
2010-1-6
{19}
(#5784630@0)
-
If what you asked about is a requirement (which I doubt), then I have nothing to say. If what you asked about is a solution, then I can say that there are alternatives.JAVA编译时好象没有C的"宏"(MACRO)吧? 怎么问这样的低级问题呢?看样子老牛还在凭感觉工作,在网上YY时间太多。担忧ing....
-james05(关不上的窗);
2010-1-6
{116}
(#5785090@0)
-
I haven't heard of the so-called Java "macro" too.:-) This is my personal requirement to my project, I need to create different folder tree based on different clients, but the source codes remain the same, pls tell me the alternatives...
-nicetomeetyou(蓦然回首彩虹跨天地);
2010-1-8
(#5789727@0)
-
how about annotation!
-xiangdang(中庸之道);
2010-1-10
(#5794816@0)
-
大部分IDE都支持,例如elipse,用refactor就行了。
-sxffff(Felix);
2010-1-13
(#5803296@0)
-
When copying/pasting source files between different projects, refactoring will be used. qingqing told about build.xml and build.properties. That maybe a right solution, I will try..
-nicetomeetyou(收官);
2010-1-13
(#5803328@0)
-
They are key points of Apache Ant, it's a good tool, good luck :)
-yo1yo2(青青);
2010-1-13
(#5803333@0)