b*i
2 楼
项目用到一个第三方库,挺大的.所以想生产两种jar文件,一种是正式的发行版,包含
第三方库,一种简易版,我自己写一个替代的第三方库里面的接口的文件,什么也不做
,功能消减但是可以编译通过。这样再写一个project,里面实现需要的第三方库的函数
,在eclipse里面改project property里面的Required Projects on Build Path。我的
做法行吗?
java大牛都是如何做这件事情呢?象C++就可以在编译的时候加选项就可以了,然后通
过ifdef来调整什么样的函数被编译,源代码都可以不变的,象win32和linux可以同样的
源码。
第三方库,一种简易版,我自己写一个替代的第三方库里面的接口的文件,什么也不做
,功能消减但是可以编译通过。这样再写一个project,里面实现需要的第三方库的函数
,在eclipse里面改project property里面的Required Projects on Build Path。我的
做法行吗?
java大牛都是如何做这件事情呢?象C++就可以在编译的时候加选项就可以了,然后通
过ifdef来调整什么样的函数被编译,源代码都可以不变的,象win32和linux可以同样的
源码。
d*e
3 楼
• Company :
PROELAN is a software provider and an IT consulting company located in the
French Riviera. Sophia-Antipolis, French high-tech cluster benefits from an
exceptional working environment with sporting, leisure and cultural
opportunities.
We work with international groups settled in the area. Currently in
expansion we search for new motivated employees. Human-sized company with
recognized know-how on new technologies we base our future development on
human factor and employees well-
PROELAN is a software provider and an IT consulting company located in the
French Riviera. Sophia-Antipolis, French high-tech cluster benefits from an
exceptional working environment with sporting, leisure and cultural
opportunities.
We work with international groups settled in the area. Currently in
expansion we search for new motivated employees. Human-sized company with
recognized know-how on new technologies we base our future development on
human factor and employees well-
v*m
4 楼
我本科硕士是高分子化学一类的,现在有U of Colorado Boulder的化工 PhD offer.
请问这家的化工如何?感觉自己还是比较喜欢高分子而不是纯化工或者生物化工。搭车
问Prof.Douglas Gin 怎么样?
请问这家的化工如何?感觉自己还是比较喜欢高分子而不是纯化工或者生物化工。搭车
问Prof.Douglas Gin 怎么样?
g*g
5 楼
First of all, most of the time you don't put 3rd party libs into
your own jar. You leave them and put all of them in the classpath.
Now if you really want to do it, you should use something like Ant
or Maven that you can have different targets.
【在 b***i 的大作中提到】
: 项目用到一个第三方库,挺大的.所以想生产两种jar文件,一种是正式的发行版,包含
: 第三方库,一种简易版,我自己写一个替代的第三方库里面的接口的文件,什么也不做
: ,功能消减但是可以编译通过。这样再写一个project,里面实现需要的第三方库的函数
: ,在eclipse里面改project property里面的Required Projects on Build Path。我的
: 做法行吗?
: java大牛都是如何做这件事情呢?象C++就可以在编译的时候加选项就可以了,然后通
: 过ifdef来调整什么样的函数被编译,源代码都可以不变的,象win32和linux可以同样的
: 源码。
your own jar. You leave them and put all of them in the classpath.
Now if you really want to do it, you should use something like Ant
or Maven that you can have different targets.
【在 b***i 的大作中提到】
: 项目用到一个第三方库,挺大的.所以想生产两种jar文件,一种是正式的发行版,包含
: 第三方库,一种简易版,我自己写一个替代的第三方库里面的接口的文件,什么也不做
: ,功能消减但是可以编译通过。这样再写一个project,里面实现需要的第三方库的函数
: ,在eclipse里面改project property里面的Required Projects on Build Path。我的
: 做法行吗?
: java大牛都是如何做这件事情呢?象C++就可以在编译的时候加选项就可以了,然后通
: 过ifdef来调整什么样的函数被编译,源代码都可以不变的,象win32和linux可以同样的
: 源码。
b*i
7 楼
明白,谢了。假设第三方库是独立的jar,那么我替代的那一部分也就是一个独立的jar
喽。两个互替的库的名字应该都一样,这个方案确实很简洁。
我倒是一直在用Eclipse,因为程序就是java core,不涉及web。看来得学新的工具了。
【在 g*****g 的大作中提到】
: First of all, most of the time you don't put 3rd party libs into
: your own jar. You leave them and put all of them in the classpath.
: Now if you really want to do it, you should use something like Ant
: or Maven that you can have different targets.
喽。两个互替的库的名字应该都一样,这个方案确实很简洁。
我倒是一直在用Eclipse,因为程序就是java core,不涉及web。看来得学新的工具了。
【在 g*****g 的大作中提到】
: First of all, most of the time you don't put 3rd party libs into
: your own jar. You leave them and put all of them in the classpath.
: Now if you really want to do it, you should use something like Ant
: or Maven that you can have different targets.
J*n
13 楼
在Eclipse里面创建两个run configuration不行吗?一个用完整版一个用简易版
w*u
15 楼
那个简易版到底是为了做啥啊
相关阅读
Amex SPG卡送25K points 白送500刀现金 最佳酒店卡请问U of Colorado Boulder 的化工怎么样?Langer有多少徒子徒孙徒孙孙挖个坑 AICHE J 能和JACS 算同一档次的杂志吗 (转载)2012Fall求offer比较,美国chem VS 加国ChemE求指教 umass amherst 的chemical engineering节日快乐!Discover More Card- $150 CashBack Bonus 赶紧申请博士后/研究员招生-Metabolic Engineering/Synthetic Biology/Biofuel请问有人Onsite过ExxonMobil的Research&Engineering么?Amex Gold Premier信用卡送1000刀 Match 75K Bonus全球著名品酒俱乐部,只需$69即可购买12瓶高档葡萄酒送高档开瓶器高性能电池研发/管理职位 [深圳] (转载)咨询化工专业择校的事,感谢大家Amex SPG卡送25K points 免费送500刀现金 最佳酒店卡Amex SPG卡送25K points 免费送500刀现金 最佳酒店卡清华大学生产过程安全监控课题组招聘博士后 (转载)Discover More No Balance Transfer Fee Card 最好转balance卡4th International Conference on the Mechanics of Biomaterials and Tissues寻 2012 ACC 同游者...