Bug? DirAsserts subfolder

Knoppi

Active Member
Licensed User
Longtime User
I have a subfolder in DirAsserts ( Files/images)

the code runs in DEBUG-Mode
B4X:
File.Copy( File.DirAssets, File.Combine( "images",files.Get( i)), Folder, files.Get( i))

but not in RELEASE-Mode (File not found)

in the RELEASE.jar file the subfolder Files/images don't exists

B4j 5.82
 

Knoppi

Active Member
Licensed User
Longtime User
runs in DEBUG-Mode but fails in RELEASE-Mode
B4X:
Sub CopyAssetToDirData
    Dim files As List
    files.Initialize
    files.Add( "menu_about.png")
    files.Add( "menu_copy.png")
    files.Add( "menu_cut.png")
    files.Add( "menu_edit.png")
    files.Add( "menu_find.png")
    files.Add( "menu_help.png")
    files.Add( "menu_item.png")
    files.Add( "menu_new.png")
    files.Add( "menu_open.png")
    files.Add( "menu_paste-2.png")
    files.Add( "menu_paste.png")
    files.Add( "menu_save.png")
    files.Add( "menu_save_as.png")

    Dim Folder As String = APP_ICONFOLDER
    'Log( Folder)
    File.MakeDir( Folder, "")

    For i =0 To files.Size -1
        Try
            File.Copy( File.DirAssets, File.Combine( "images",files.Get( i)), Folder, files.Get( i))
            'File.Copy( File.DirAssets, files.Get( i), Folder, files.Get( i))
        Catch
            Log( LastException)
        End Try
    Next
End Sub


in the RELEASE.jar file the subfolder Files/images don't exists
 
Last edited:

Knoppi

Active Member
Licensed User
Longtime User
Example App

Logs form RELEASE
B4X:
C:\Users\knoppi\AppData\Roaming\RELEASE
(FileNotFoundException) java.io.FileNotFoundException: images\menu_about.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_copy.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_cut.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_edit.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_find.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_help.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_item.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_new.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_open.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_paste-2.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_paste.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_save.png
(FileNotFoundException) java.io.FileNotFoundException: images\menu_save_as.png
0

Logs form DEBUG
B4X:
Waiting for debugger to connect...
Program started.
C:\Users\knoppi\AppData\Roaming\DEBUG
13
 

Attachments

  • CopyAssertToDirData.zip
    17.3 KB · Views: 251
  • CopyAssertToDirData.jar
    349.1 KB · Views: 235
Top