forked from qt-creator/qt-creator
Android: JavaParser, adjust paths from build to source directory
Since we copy the java files to the build directory, we need to adjust the path that the java compiler emits for error messages. For that the JavaParser needs to know the source directory, which is the android package source dir and the build directory. The AndroidDeployQtStep thus needs more information then just the input json file and now stores the path to the .pro file to both retrieve the input file and the android package source directory. Task-number: QTCREATORBUG-10904 Change-Id: Ib5141b35b610bc2eee568a096fc5e930f9eb2e47 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#define JAVAPARSER_H
|
||||
|
||||
#include <projectexplorer/ioutputparser.h>
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
namespace Android {
|
||||
namespace Internal {
|
||||
@@ -45,11 +46,16 @@ public:
|
||||
void stdError(const QString &line);
|
||||
void setProjectFileList(const QStringList &fileList);
|
||||
|
||||
void setBuildDirectory(const Utils::FileName &buildDirectory);
|
||||
void setSourceDirectory(const Utils::FileName &sourceDirectory);
|
||||
|
||||
private:
|
||||
void parse(const QString &line);
|
||||
|
||||
QRegExp m_javaRegExp;
|
||||
QStringList m_fileList;
|
||||
Utils::FileName m_sourceDirectory;
|
||||
Utils::FileName m_buildDirectory;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user