Skip to content

valentin-baron/dproj-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dproj-rs

Parse Embarcadero Delphi/RAD Studio .dproj project files and rsvars.bat environment variable files.

Features

  • .dproj parsing: Read and parse Delphi project files with proper handling of conditions, properties, and references
  • rsvars.bat parsing: Extract environment variables from RAD Studio's rsvars.bat with full %VAR% expansion against the live system environment
  • Variable resolution: Expand MSBuild-style $(Var) references and %VAR% environment variables
  • Condition evaluation: Evaluate conditional expressions in project configurations
  • Non-destructive mutation: Change property values while preserving original XML whitespace, comments, and attribute ordering

Usage

use dproj_rs::{Dproj, DprojBuilder, rsvars};

// Simple – load without rsvars
let dproj = Dproj::from_file("MyProject.dproj")?;

// With rsvars – system env is included automatically
let dproj = DprojBuilder::new()
    .rsvars_file(r"C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\rsvars.bat")?
    .from_file("MyProject.dproj")?;

See the examples directory for more detailed usage.

Changelog

See CHANGELOG.md for a full history of changes.

License

Licensed under the LICENSE file.

About

Dproj reader library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors