0

In linux, I am able to start LDAP serice like this

sudo /etc/init.d/ldap start

now I want to do this using ANT:

<target name="ldap-service-start" description="Start LDAP service">
          <exec executable="ldap" osfamily="unix" dir="/etc/init.d">
           <arg line="start"/>
          </exec> 
</target>

but it failed when running ANT:

Execute failed: java.io.IOException: Cannot run program "ldap" (in directory "/etc/init.d"): error=2, No such file or directory

what is wrong with my ANT script?

Thanks

0

ended up with a solution myself:

<target name="ldap-service-start" description="Start LDAP service">
      <exec executable="/etc/init.d/ldap" osfamily="unix">
       <arg line="start"/>
      </exec> 
</target>

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.