b'\n_START_ARTICLE_\nGradle\n_START_SECTION_\nJava projekta piem\xc4\x93rs\n_START_PARAGRAPH_\nTiek apskat\xc4\xabts gad\xc4\xabjums, kad tiek izmantota Maven direktoriju strukt\xc5\xabra Java kodam un resursiem. \xc5\xa0ie direktoriji ir\xc2\xa0: src/main/java, src/main/resources, src/test/java un src/test/resources._NEWLINE_build.gradle_NEWLINE_apply plugin: \'java\'_NEWLINE_gradle build izpild\xc4\xab\xc5\xa1ana dos \xc5\xa1\xc4\x81du rezult\xc4\x81tu:_NEWLINE_> gradle build_NEWLINE_:compileJava_NEWLINE_:processResources_NEWLINE_:classes_NEWLINE_:jar_NEWLINE_:assemble_NEWLINE_:compileTestJava_NEWLINE_:processTestResources_NEWLINE_:testClasses_NEWLINE_:test_NEWLINE_:check_NEWLINE_:build_NEWLINE__NEWLINE_BUILD SUCCESSFUL_NEWLINE_Java spraudnis emul\xc4\x93 daudzus no sagaid\xc4\xabtajiem Maven dz\xc4\xabves cikliem k\xc4\x81 uzdevumus orient\xc4\x93t\xc4\x81 aciklisk\xc4\x81 atkar\xc4\xabbu graf\xc4\x81 no katra uzdevuma ievades un izvades datiem. \xc5\xa0aj\xc4\x81 vienk\xc4\x81r\xc5\xa1aj\xc4\x81 piem\xc4\x93r\xc4\x81 build uzdevums ir atkar\xc4\xabgs no check un assemble uzdevumu izvada. L\xc4\xabdz\xc4\xabgi check ir atkar\xc4\xabgs no test un assemble ir atkar\xc4\xabgs no jar._NEWLINE_Projektiem, kuri neseko Maven pie\xc5\x86\xc4\x93mumiem, Gradle \xc4\xbcauj konfigur\xc4\x93t direktoriju strukt\xc5\xabru. \xc5\xa0is piem\xc4\x93rs atbalst\xc4\xabtu projektu, kas glab\xc4\x81 izejas failus src/java, nevis src/main/java, ko pie\xc5\x86em Maven._NEWLINE_build.gradle_NEWLINE_apply plugin: \'java\'sourceSets.main.java.srcDirs = [\'src/java\']\n_START_SECTION_\nAnt migr\xc4\x81cijas piem\xc4\x93rs\n_START_PARAGRAPH_\nGradle ir labi integr\xc4\x93ts ar Ant un pat uztver Ant b\xc5\xabv\xc4\x93jumu failus k\xc4\x81 skriptus, ko var tie\xc5\xa1i import\xc4\x93t b\xc5\xabv\xc4\x93\xc5\xa1anas laik\xc4\x81. \xc5\xa0is piem\xc4\x93rs demonstr\xc4\x93 vienk\xc4\x81r\xc5\xa1u Ant m\xc4\x93r\xc4\xb7i, kas tiek iek\xc4\xbcauts k\xc4\x81 Gradle uzdevums._NEWLINE_build.xml_NEWLINE_<project>_NEWLINE_  <target name="ant.target">_NEWLINE_    <echo message="Izpilda ant.target!"/>_NEWLINE_  </target></project>_NEWLINE_build.gradle_NEWLINE_ant.importBuild \'build.xml\'_NEWLINE_gradle ant.target izpild\xc4\xab\xc5\xa1ana dos:_NEWLINE_> gradle ant.target_NEWLINE_:ant.target_NEWLINE_[ant:echo] Izpilda ant.target!_NEWLINE__NEWLINE_BUILD SUCCESSFUL'