/*
 * Copyright 2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gradle.buildinit.plugins.internal;

import org.gradle.util.GFileUtils;

public class ResourceDirsGenerator implements BuildContentGenerator {

    @Override
    public void generate(InitSettings settings) {
        GFileUtils.mkdirs(settings.getTarget().dir(settings.getSubprojectName() + "/src/main/resources").getAsFile());
        GFileUtils.mkdirs(settings.getTarget().dir(settings.getSubprojectName() + "/src/test/resources").getAsFile());
    }
}

@@ -829,16 +829,82 @@
 ings) %7B%0A
+        for (String subproject : settings.getSubprojects()) %7B%0A    
         
@@ -943,36 +943,24 @@
 rget().dir(s
-ettings.getS
 ubprojectNam
@@ -948,38 +948,32 @@
 ).dir(subproject
-Name()
  + %22/src/main/re
@@ -996,32 +996,36 @@
 ile());%0A        
+   
+ 
 GFileUtils.mkdir
@@ -1052,28 +1052,16 @@
 ().dir(s
-ettings.getS
 ubprojec
@@ -1065,14 +1065,8 @@
 ject
-Name()
  + %22
@@ -1097,20 +1097,30 @@
 tAsFile());%0A
+        %7D%0A
     %7D%0A%7D%0A

Generate (empty) resource directories for all subprojects