Launch4j / windres: how to set paths correctly?

后端 未结 5 881
轮回少年
轮回少年 2021-01-14 09:40

I have launch4j configure for my project. I used it back, when i developed on windowsXP, where it worked. Now i need it to build on mac as well:

My build.xml:

<
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-14 10:27

    I also had this problems and I fixed it by modifying the launch4j code.
    In the Class Launch4JTask.java I replaced the line

    final Builder b = new Builder(Log.getAntLog());
    

    with this one

    final Builder b = new Builder(Log.getAntLog(), new File(getOwningTarget().getProject().getProperty("launch4j.bindir")));
    

    Through this change i could specify the path to Launch4j inside my ant build script like that

    
    

    Greetings, -chris-

提交回复
热议问题