History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BDP-108
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Kirill Kalishev
Reporter: Olesya Smirnova
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
BuildDesk

Resources in web module

Created: 06 Dec 06 13:57   Updated: 06 Dec 06 13:57
Component/s: Generator.TeamServer
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
//from eap

My web application is structured very much in accordance to the maven2 structure (though I'm not using maven2!). The directories important to this thread include:

src
src/main
src/main/java [1]
src/main/resources [1]
src/test
src/test/java [2]
src/test/resources [2]

[1] Flagged as Source Folders
[2] Flagged as Test Source Folders

In IDEA, when I run the application, it uses the resources in main/resources. When I run unit tests (JUnit 3.8) it overrides settings in main/resources with those from test/resources. Presumably, that is because test/resources is first in the classpath so things are found there first.

I've configured TeamCity to use the project (.ipr) file. I'm drawn to the idea that both local builds and build server builds use the same configuration, and thus, are built and tested in the same expect manner.

When TeamCity runs my unit tests, resources from both main/resources and test/resources are available on the classpath, but those in main/resources are found first. If TC was doing the same thing as IDEA, then test/resources would be found first.

The main problem with this is that the two (IDEA and TC) are out of sync with one another. I'd expect them to run tests in the same manner and with the same classpath (including order).



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.