# Getting error while running build.bat (Deployer ABE 10.7)

**URL:** <https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441>\
**Category:** Forum\
**Tags:** ABE, asset-build-environment, Deployer\
**Created:** [May 18, 2021, 9:42am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441 "2021-05-18T09:42:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnab\_Duttaray2](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Arnab\_Duttaray2](https://techcommunity.softwareag.com/u/Arnab_Duttaray2)\
**Post date:** [May 18, 2021, 9:42am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/1 "2021-05-18T09:42:51Z")

</div>

Could you please help identify the issue.  
When I run the build script(build.bat), I am getting an error like  
**[exec] fatal: destination path ‘gitRemoteRepo’ already exists and is not an**  
**empty directory.**

I have attached the ABE build log. Also, attached the config files - build.xml, build-source-checkout.xml and build.properties.  
[build.xml](https://techcommunity.softwareag.com/uploads/short-url/ill1oK7VscjofStLkYQ42MnlGzd.xml) (16.1 KB)  
[build-source-checkout.xml](https://techcommunity.softwareag.com/uploads/short-url/6Rdia9yUOIxfMzTinCgFtj1D4aT.xml) (2.1 KB)  
[build-properties.txt](https://techcommunity.softwareag.com/uploads/short-url/airJ8AoK02IdfEoHkHFAm9u1zr5.txt) (7.0 KB)

The build.bat is the build script provided as part of ABE(Asset Build Environment) in Deployer.

In this scenario, I created a bare git repo in F:/gitRemoteRepo and pushed the code from local git repo(F:/GIT-DEV107) to it. After that, I am running the build script so that code is checked out from the gitRemoteRepo and into the F:/buildOutputDir.

The webMethods version is 10.7 but I guess the ABE functionality would be similar for lower versions also.

Thanks in advance….  
Arnab  
[ABE\_build\_log.txt](https://techcommunity.softwareag.com/uploads/short-url/SCBc0OZjjYcHUFEZYqL4ZRfHb8.txt) (1.9 KB)

---

<div class="post-metadata">

**Author:** ![DINESH\_J](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dinesh_j/32/23737_2.png) [@DINESH\_J](https://techcommunity.softwareag.com/u/DINESH_J)\
**Post date:** [May 18, 2021, 10:38am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/2 "2021-05-18T10:38:42Z")

</div>

> [@Arnab\_Duttaray2](#):
>
> gitRemoteRepo

Is this stopping from implementing your requirement. Your Build execution is success based the log files. You are seeing " **[exec] fatal: destination path ‘gitRemoteRepo’ already exists and is not an**  
**empty directory.**" is because your gitRemoteRepo is should be empty before it get Cloned. Include rm -rf to clean up the gitRepo, then pull it from remoteRepo add your changes and commit and push to remotebrach.

---

<div class="post-metadata">

**Author:** ![Arnab\_Duttaray2](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Arnab\_Duttaray2](https://techcommunity.softwareag.com/u/Arnab_Duttaray2)\
**Post date:** [May 18, 2021, 10:45am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/3 "2021-05-18T10:45:31Z")

</div>

Thanks @DINESH_J .  
Yes, although the Build execution shows as “success” but the build files are missing.  
Actually, after writing wM code in Designer, I checked them in to the gitRemoteRepo.  
Here, using the build config files, I am trying to check out the files from the gitRemoteRepo and then build them.  
Would you please be able to tell me the relevant entries in the build config files ( build.xml, build-source-checkout.xml and build.properties) that I should insert/update to implement the below suggestion:

_Include rm -rf to clean up the gitRepo, then pull it from remoteRepo add your changes and commit and push to remotebrach._

---

<div class="post-metadata">

**Author:** ![DINESH\_J](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dinesh_j/32/23737_2.png) [@DINESH\_J](https://techcommunity.softwareag.com/u/DINESH_J)\
**Post date:** [May 19, 2021, 9:31am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/4 "2021-05-19T09:31:18Z")

</div>

Hi Arnab,

Are you using local service development to check-in the Assets ?  
How are you executing your build.bat script manually or through jenkins job ?  
let me know the step you are performing for your check in and build creation process ?

I could see 2 error message from the log file.  
1. [exec] fatal: destination path ‘gitRemoteRepo’ already exists and is not an  
empty directory.

```
          gitRemoteRepo is not empty . kinldy go the file location and delete file if any . 

         ls -a - Will give you the all the files if any.
         rm -rf * - It will delete the files in the locaiton. 

        After doing the above step try to execute the build.xml file alone to create your build asset and check if it valid .

```

1. 

```
 [java] [5/17/21 8:47 AM][MESSAGE] ispackage.ispackage: [GIT-DEV107] is not

```

an Integration Server package.

```
               Because of the corupted build generated in the previous step which caused this step to not able to generate the build asset correctly.

```

Try clearing your localGit repo and rerun your steps.

---

<div class="post-metadata">

**Author:** ![Arnab\_Duttaray2](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Arnab\_Duttaray2](https://techcommunity.softwareag.com/u/Arnab_Duttaray2)\
**Post date:** [May 21, 2021, 8:52am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/5 "2021-05-21T08:52:00Z")

</div>

Thanks @DINESH_J  
Actually, the gitRemoteRepo was getting cloned under F:/GIT-DEV107 so the error was coming.  
It got resolved after I deleted the directory gitRemoteRepo from F:/GIT-DEV107.  
However, the build files are still not getting created successfully.  
Should I do a git checkout instead of git clone ?

Thanks  
Arnab

---

<div class="post-metadata">

**Author:** ![Arnab\_Duttaray2](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Arnab\_Duttaray2](https://techcommunity.softwareag.com/u/Arnab_Duttaray2)\
**Post date:** [May 24, 2021, 11:51am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/6 "2021-05-24T11:51:38Z")

</div>

Hi @DINESH_J  
Any new ideas please ?  
I decided to hard-code the directory in git clone as “F:/gitRemoteRepo”.  
Still, getting the following error in the generate-composites step:

generate-composites:  
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac  
kages hooks,info,objects,refs.  
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac  
kage [hooks].  
**[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [hooks] is not an In**  
**tegration Server package.**  
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac  
kage [info].  
**[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [info] is not an Int**  
**egration Server package**.  
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac  
kage [objects].  
**[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [objects] is not an**  
**Integration Server package.**  
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Starting to read pac  
kage [refs].  
**[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: [refs] is not an Int**  
**egration Server package.**  
[java] [5/24/21 1:08 PM][MESSAGE] ispackage.ispackage: Completed all packag  
es.

This is the structure of the gitRemoteRepo folder.

 ![build_error](https://global.discourse-cdn.com/techcommunity/original/3X/0/8/0842d6512396e0c39136adfec0141a7b783c10ac.png)

It seems that it is looking for packages inside the folder gitRemoteRepo.

How do I make it checkout the files from the remote repo, then build the files ?

TIA !

Regards  
Arnab

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [August 22, 2021, 11:52am UTC](https://techcommunity.softwareag.com/t/getting-error-while-running-build-bat-deployer-abe-10-7/241441/7 "2021-08-22T11:52:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
