pzoio / impala

Automatically exported from code.google.com/p/impala
1 stars 2 forks source link

Ant tests don't run unless resources have been moved to bin directory #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Eclipse, module.properties is copied to bin directory from where it is found 
by the 
ModuleLocationResolver.

However, if project has not been loaded into Eclipse, there is no equivalent 
mechanism in ANT, 
resulting in test failures with the following message:

{{{
    [junit] Testcase: testIntegration(test.MessageIntegrationTest): Caused an ERROR
    [junit] Application is using internally defined module structure, but no module.properties file is 
present on the classpath for module 'module1'. It must exist in one of the 
following locations: 
[file [/Users/philzoio/workspaces/newproject/main/../module1/bin]]
    [junit] org.impalaframework.exception.ConfigurationException: Application is using internally 
defined module structure, but no module.properties file is present on the 
classpath for module 
'module1'. It must exist in one of the following locations: [file 
[/Users/philzoio/workspaces/newproject/main/../module1/bin]]
    [junit]     at 
org.impalaframework.module.source.BaseInternalModuleDefinitionSource.getResource
ForModule
(BaseInternalModuleDefinitionSource.java:139)
    [junit]     at 
org.impalaframework.module.source.BaseInternalModuleDefinitionSource.getProperti
esForModul
e(BaseInternalModuleDefinitionSource.java:124)
    [junit]     at 
org.impalaframework.module.source.BaseInternalModuleDefinitionSource.loadPropert
ies(BaseInte
rnalModuleDefinitionSource.java:118)
    [junit]     at 
org.impalaframework.module.source.InternalModuleDefinitionSource.buildMaps(Inter
nalModuleD
efinitionSource.java:99)
    [junit]     at 
org.impalaframework.module.source.InternalModuleDefinitionSource.buildMaps(Inter
nalModuleD
efinitionSource.java:93)
    [junit]     at 
org.impalaframework.module.source.InternalModuleDefinitionSource.inspectModules(
InternalMo
duleDefinitionSource.java:87)
    [junit]     at 
org.impalaframework.module.source.InternalModuleDefinitionSource.getModuleDefini
tion(Intern
alModuleDefinitionSource.java:62)
    [junit]     at test.MessageIntegrationTest.getModuleDefinition(MessageIntegrationTest.java:38)
    [junit]     at 
org.impalaframework.module.operation.UpdateRootModuleOperation.doExecute(UpdateR
ootMod
uleOperation.java:50)
    [junit]     at 
org.impalaframework.module.operation.LockingModuleOperation.execute(LockingModul
eOperati
on.java:43)
    [junit]     at 
org.impalaframework.facade.BaseOperationsFacade.init(BaseOperationsFacade.java:8
8)
    [junit]     at org.impalaframework.facade.Impala.init(Impala.java:77)
    [junit]     at test.BaseIntegrationTest.setUp(BaseIntegrationTest.java:27)
    [junit] 
    [junit] 
    [junit] Test suite.AutomatedRootTests FAILED

}}}

Original issue reported on code.google.com by philzoio...@googlemail.com on 19 Jan 2009 at 8:27

GoogleCodeExporter commented 9 years ago
Fixed with r3568

Original comment by philzoio...@googlemail.com on 19 Jan 2009 at 9:02