Re: [junitee-user] Question about junitee-example-1.11
Brought to you by:
o_rossmueller
|
From: Wade T. <way...@gm...> - 2007-12-26 20:43:01
|
if you deploy a war which contains a properties file, then you can access it using the getResourceAsStream method. this way you just use the path of the file with respect to the base of the war. On Dec 11, 2007 9:30 AM, TS <10t...@gm...> wrote: > Yes, > > First problem is how can I include properties file or some other files > into build.xml of junitee-example-1.11? > > > > > 2007/12/11, Wade Taylor <way...@gm...>: > > is the properties file included in the ear or war? > > > > > > > > > > On Dec 10, 2007 5:14 PM, TS <10t...@gm...> wrote: > > > > > > Hello there, > > > > > > My name is Takashi. As showed in title, I have question about > > JunitEE(example). > > > How can I recognize some files on other location that have > > > relationship to junitee test code?? > > > I'll explain the details below, > > > > > > About "build.xml", I modified this file little bit for treating my own > > > test cases. > > > The detail is I modified "build.xml" like this. > > > > > > 1. Change the source code location. > > > <property name=" src.java" value="my Sorce location"/> > > > > > > 2. Add my own jar file as library. > > > <property name="mine.library" value="Add My External Jar"/> > > > > > > I tried to modify like this and this worked well. > > > It generated "ear" file contains my own test cases and libraries. > > > However, in some test cases, I used properties file for getting > values. > > > > > > I specify the properties files like this as reference path in my code, > > > "javalesson\\input.properties" > > > > > > When I tried to execute junitee on web, I got an error, it said, > > > [Can't find the specified path "javalesson\\input.properties"] > > > It seems it doesn't recognize the properties files or some files on > > > external location. > > > > > > When I specify absolute path in the properties files, it works well. > > > However, I want to use reference path instead. > > > How can I fix this problem?? > > > > > > > > > Thank you > > > > > > Takashi > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > junitee-user mailing list > > > jun...@li... > > > https://lists.sourceforge.net/lists/listinfo/junitee-user > > > > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > junitee-user mailing list > > jun...@li... > > https://lists.sourceforge.net/lists/listinfo/junitee-user > > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > junitee-user mailing list > jun...@li... > https://lists.sourceforge.net/lists/listinfo/junitee-user > |