Subversion Repository Public Repository

litesoft

Diff Revisions 611 vs 612 for /trunk/Java/ScarPlus/src/com/esotericsoftware/scar/ProjectParameters.java

Diff revisions: vs.
  @@ -237,7 +237,8 @@
237 237
238 238 public List<String> getDependencies()
239 239 {
240 - return getListNotNull( DEPENDENCIES.getName() );
240 + List<String> zResult = getCachedWithConvertion( DEPENDENCIES.getName(), FORMATTED_LIST_STRING, null );
241 + return (zResult != null) ? zResult : Collections.<String>emptyList();
241 242 }
242 243
243 244 public Paths getCompileClasspath()
  @@ -799,6 +800,21 @@
799 800 }
800 801 };
801 802
803 + private final DataConverter<List<String>> FORMATTED_LIST_STRING = new DataConverter<List<String>>()
804 + {
805 + @Override
806 + public List<String> convert( Object pValue )
807 + {
808 + List<String> zList = LIST_STRING.convert( pValue );
809 + List<String> zFormattedList = new ArrayList<String>( zList.size() );
810 + for ( String zEntry : zList )
811 + {
812 + zFormattedList.add( format( zEntry ) );
813 + }
814 + return zFormattedList;
815 + }
816 + };
817 +
802 818 private final DataConverter<String> PATH = new DataConverter<String>()
803 819 {
804 820 @Override