Keghani Kouzoujian 10 years ago
parent
commit
cecac40be3
5 changed files with 7 additions and 7 deletions
  1. +4
    -4
      java/build.xml
  2. +2
    -2
      java/libphonenumber/pom.xml
  3. +1
    -1
      java/libphonenumber/src/com/google/i18n/phonenumbers/SingleFileMetadataSourceImpl.java
  4. +0
    -0
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProto
  5. +0
    -0
      java/libphonenumber/test/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProtoForTesting

+ 4
- 4
java/build.xml View File

@ -45,14 +45,14 @@
</exec>
</target>
<target name="build-phone-metadata-to-one-file">
<target name="build-single-file-phone-metadata">
<exec executable="java">
<arg value="-jar" />
<arg value="${build.tools.jar}"/>
<arg value="BuildMetadataProtoFromXml"/>
<arg value="--input-file=${resources.dir}/PhoneNumberMetadata.xml"/>
<arg value="--output-dir=${libphonenumber.src.dir}/com/google/i18n/phonenumbers"/>
<arg value="--data-prefix=data/PhoneNumberMetadataProtoFile"/>
<arg value="--data-prefix=data/SingleFilePhoneNumberMetadataProto"/>
<arg value="--single-file=true"/>
<arg value="--mapping-class=CountryCodeToRegionCodeMap"/>
<arg value="--copyright=2010"/>
@ -88,14 +88,14 @@
</exec>
</target>
<target name="build-test-metadata-to-one-file">
<target name="build-single-file-test-metadata">
<exec executable="java">
<arg value="-jar" />
<arg value="${build.tools.jar}"/>
<arg value="BuildMetadataProtoFromXml"/>
<arg value="--input-file=${resources.dir}/PhoneNumberMetadataForTesting.xml"/>
<arg value="--output-dir=${libphonenumber.test.dir}/com/google/i18n/phonenumbers"/>
<arg value="--data-prefix=data/PhoneNumberMetadataProtoForTestingFile"/>
<arg value="--data-prefix=data/SingleFilePhoneNumberMetadataProtoForTesting"/>
<arg value="--single-file=true"/>
<arg value="--mapping-class=CountryCodeToRegionCodeMapForTesting"/>
<arg value="--copyright=2010"/>


+ 2
- 2
java/libphonenumber/pom.xml View File

@ -36,8 +36,8 @@
<excludes>
<exclude>**/SingleFileMetadataSourceImpl.class</exclude>
<exclude>**/SingleFileMetadataSourceImpl.java</exclude>
<exclude>**/PhoneNumberMetadataProtoFile</exclude>
<exclude>**/PhoneNumberMetadataProtoForTestingFile</exclude>
<exclude>**/SingleFilePhoneNumberMetadataProto</exclude>
<exclude>**/SingleFilePhoneNumberMetadataProtoForTesting</exclude>
</excludes>
</configuration>
</plugin>


+ 1
- 1
java/libphonenumber/src/com/google/i18n/phonenumbers/SingleFileMetadataSourceImpl.java View File

@ -24,7 +24,7 @@ public final class SingleFileMetadataSourceImpl implements MetadataSource {
Logger.getLogger(SingleFileMetadataSourceImpl.class.getName());
private static final String META_DATA_FILE =
"/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoFile";
"/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProto";
// A mapping from a region code to the PhoneMetadata for that region.
// Note: Synchronization, though only needed for the Android version of the library, is used in


java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoFile → java/libphonenumber/src/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProto View File


java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTestingFile → java/libphonenumber/test/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProtoForTesting View File


Loading…
Cancel
Save