arianne / stendhal

Stendhal is a fun friendly and free multiplayer online adventure game with an old school feel.
https://arianne-project.org
GNU General Public License v2.0
577 stars 200 forks source link

Error Copying File During Neutralinojs Build #735

Closed AntumDeluge closed 4 weeks ago

AntumDeluge commented 4 weeks ago

šŸž Describe the bug

Trying to build ant neutralinojs on Windows produces the following error (both in PowerShell & MSYS2):

BUILD FAILED
C:\Users\antum\Development\Arianne\stendhal\buildtools\ant_modules\apps.xml:93:
Failed to copy C:\Users\antum\Development\Arianne\stendhal\app\neutralinojs\LICENSE.txt
to C:\Users\antum\Development\Arianne\stendhal\app\neutralinojs\dist\stendhal-client\LICENSE.txt
due to java.io.FileNotFoundException
C:\Users\antum\Development\Arianne\stendhal\app\neutralinojs\extensions\binary\LICENSE.txt
(The system cannot find the file specified)

The offending lines are in buildtools/ant_modules/apps.xml#L93:

        <copy file="app/neutralinojs/LICENSE.txt" tofile="app/neutralinojs/dist/stendhal-client/LICENSE.txt">
            <filterchain>
                <concatfilter append="app/neutralinojs/extensions/binary/LICENSE.txt" />
            </filterchain>
        </copy>

If the concatfilter tag is removed, the build succeeds. Also note that if the app/neutralinojs/dist/stendhal-client/LICENSE.txt file already exists, build succeeds even with concatfilter tag.

Update:

After closer inspection, I realize that the error is the missing file app/neutralinojs/extensions/binary/LICENSE.txt. So the issue probably isn't Windows specific.

I assume app/neutralinojs/extensions/binary/LICENSE.txt is supposed to exist in the source code?

šŸŒ Environment

AntumDeluge commented 4 weeks ago

ant nativehelper must be executed before ant neutralinojs to generate the missing license text file.