Skip to content

Commit c5bdca0

Browse files
committed
Merge merged PR 737 : Fix API properties loading
2 parents f3c9179 + 409e7e7 commit c5bdca0

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
@@ -126,7 +126,7 @@ private void loadPropertyFile() throws FileNotFoundException {
126126
private void loadApiPropertyFile() throws FileNotFoundException {
127127
String filename = "androidannotations-api.properties";
128128
try {
129-
URL url = getClass().getClassLoader().getResource(filename);
129+
URL url = EActivity.class.getClassLoader().getResource(filename);
130130
propertiesApi.load(url.openStream());
131131
} catch (Exception e) {
132132
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)