AAVSO / VStar

VStar is a visualisation and analysis tool for variable star data brought to you by AAVSO
https://www.aavso.org/vstar
GNU Affero General Public License v3.0
9 stars 3 forks source link

#354: removed security policy setting in VStar GUI class; deprecated old applet class #359

Closed dbenn closed 1 year ago

dbenn commented 1 year ago

Thanks @mpyat2. The section of build.xml is:

    <!-- succeeeds where including VStar.app fileset or dirset above does not -->
    <exec failifexecutionfails="no" failonerror="no" executable="rm">
        <arg value="-rf" />
        <arg value="VStar.app" />
    </exec>

In principle it should not be necessary and I'm surprised that failifexecutionfails="no" doesn't have the desired effect. I could try putting VStar.app back in as a fileset again. I'll raise an issue for this.

mpyat2 commented 1 year ago

Hi @dbenn , The 'failifexecutionfails="no"' does have the desired effect: see the 'BUILD SUCCESSFUL' message at the end of the log. However, ant also prints an error message that is pretty correct. Well, except for this error message, everything works.

dbenn commented 1 year ago

Can you tell me what that error is @mpyat2 ? I don't see it on the Mac.

mpyat2 commented 1 year ago

Hi @dbenn Well, I probably was not correct: this is not an error but rather an information message. C:\Personal\Projects\VStarGIT\VStar>ant clean Buildfile: C:\Personal\Projects\VStarGIT\VStar\build.xml

clean: [exec] Execute failed: java.io.IOException: Cannot run program "rm" (in directory "C:\Personal\Projects\VStarGIT\VStar"): CreateProcess error=2

BUILD SUCCESSFUL Total time: 5 seconds

Of course, you do not see it on the Mac because it has the 'rm' command.

dbenn commented 1 year ago

Hi @mpyat2. So, are you still seeing that error/message? The rm command should not be used in the clean target in an exec task now and all file removal is being done via Ant delete tasks which would translate into rm or del or similar in the target OS.

mpyat2 commented 1 year ago

Hi @dbenn , now everything is ok. See https://github.com/AAVSO/VStar/pull/361#pullrequestreview-1519434778