Ant build scripts, antcall, dependencies, etc

后端 未结 3 986
野性不改
野性不改 2021-01-31 17:56

I have a build script and as part of that script it copies a jar file to a directory, for ease lets call it the utils jar. the utils jar is built by another build script sittin

3条回答
  •  借酒劲吻你
    2021-01-31 18:16

    Try using the "ant" task instead of the "antcall" task, which runs the imported build directly instead of importing it into the current build file. It has a "dir" parameter:

    the directory to use as a basedir for the new Ant project. Defaults to the current project's basedir, unless inheritall has been set to false, in which case it doesn't have a default value. This will override the basedir setting of the called project.

    So you could do:

    
    

    or something like that.

提交回复
热议问题