Skip to content

Commit 545642d

Browse files
committed
Fix API properties loading. It failed to load the second Eclipse for test projects
1 parent e39ea2d commit 545642d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎AndroidAnnotations/androidannotations-api/build.properties‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#
1616

1717
source.. = src/main/java/,\
18+
src/main/resources/,\
1819
src/test/java/,\
1920
src/main/eclipse/
2021
bin.includes = META-INF/,\

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private void loadPropertyFile() throws FileNotFoundException {
354354
private void loadApiPropertyFile() throws FileNotFoundException {
355355
String filename = "androidannotations-api.properties";
356356
try {
357-
URL url = getClass().getClassLoader().getResource(filename);
357+
URL url = EActivity.class.getClassLoader().getResource(filename);
358358
propertiesApi.load(url.openStream());
359359
} catch (Exception e) {
360360
throw new FileNotFoundException(filename + " couldn't be parsed. Please check your classpath and verify that AA-API's version is at least 3.0");

0 commit comments

Comments
 (0)