[BZ-1021702] avoid to raise a compilation warning when finding java sources out of the main folder