File tree Expand file tree Collapse file tree
littleTools/x-FileBuildTool/src/main/java/com/xwintop/xJavaFxTool/services/littleTools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import lombok .extern .slf4j .Slf4j ;
1616import org .apache .commons .io .FileUtils ;
1717import org .apache .commons .lang3 .StringUtils ;
18+ import org .apache .commons .lang3 .text .StrSubstitutor ;
1819import org .apache .commons .lang3 .time .DateFormatUtils ;
19- import org .apache .commons .text .StringSubstitutor ;
2020
2121import java .io .File ;
2222import java .io .IOException ;
@@ -48,7 +48,7 @@ public void buildFileAction(boolean isMoreFile) {
4848 String fileName = fileBuildToolController .getFileNameTextField ().getText ();
4949 int index = -1 ;
5050 for (Map <String , String > fieldTableDatum : fileBuildToolController .getFieldTableData ()) {
51- StringSubstitutor contentStringSubstitutor = new StringSubstitutor (fieldTableDatum , "${" , "}" );
51+ StrSubstitutor contentStringSubstitutor = new StrSubstitutor (fieldTableDatum , "${" , "}" );
5252 contentStringSubstitutor .setEnableSubstitutionInVariables (true );
5353 String fileName1 = contentStringSubstitutor .replace (fileName );
5454 String content = contentStringSubstitutor .replace (fileTemplateText );
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ dependencies {
99// api 'org.apache.commons:commons-configuration2:2.9.0'
1010 api ' commons-io:commons-io:2.15.1'
1111 api ' org.apache.commons:commons-lang3:3.14.0'
12- api ' org.apache.commons:commons-text:1.11.0'
12+ // api 'org.apache.commons:commons-text:1.11.0'
1313// api 'commons-beanutils:commons-beanutils:1.9.4'
1414// api 'org.apache.commons:commons-imaging:1.0-alpha3'
1515 api ' cn.hutool:hutool-all:5.8.26'
You can’t perform that action at this time.
0 commit comments